| Name | Type | Default |
|
delay
# |
Number
|
50
|
Sets or gets the delay property.
import { Component } from '@angular/core';
import { jqxButtonModule } from 'jqwidgets-ng/jqxbuttons';
@Component({
selector: 'app-root',
imports: [jqxButtonModule],
template: ` <jqxButton #myButton [width]="120" [height]="40" [delay]="100"> </jqxButton> `
})
export class App {}
|
|
disabled
# |
Boolean
|
false
|
Sets or gets the disabled property.
import { Component } from '@angular/core';
import { jqxButtonModule } from 'jqwidgets-ng/jqxbuttons';
@Component({
selector: 'app-root',
imports: [jqxButtonModule],
template: ` <jqxButton #myButton [width]="120" [height]="40" [disabled]="true"> </jqxButton> `
})
export class App {}
|
|
height
# |
Size
|
null
|
Sets or gets the height property.
import { Component } from '@angular/core';
import { jqxButtonModule } from 'jqwidgets-ng/jqxbuttons';
@Component({
selector: 'app-root',
imports: [jqxButtonModule],
template: ` <jqxButton #myButton [width]="120" [height]="40"> </jqxButton> `
})
export class App {}
|
|
imgSrc
# |
String
|
''
|
Sets or gets the imgSrc property.
import { Component } from '@angular/core';
import { jqxButtonModule } from 'jqwidgets-ng/jqxbuttons';
@Component({
selector: 'app-root',
imports: [jqxButtonModule],
template: `
<jqxButton
#myButton
[width]="120"
[height]="40"
[imgPosition]="'left'"
[imgSrc]="'https://jqwidgets.com/jquery-widgets-demo/images/andrew.png'"
[imgHeight]="14"
[imgWidth]="14"
>
</jqxButton>
`
})
export class App {}
|
|
imgWidth
# |
Size
|
16
|
Sets or gets the imgWidth property.
import { Component } from '@angular/core';
import { jqxButtonModule } from 'jqwidgets-ng/jqxbuttons';
@Component({
selector: 'app-root',
imports: [jqxButtonModule],
template: `
<jqxButton
#myButton
[width]="120"
[height]="40"
[imgPosition]="left"
[imgSrc]="https://jqwidgets.com/jquery-widgets-demo/images/andrew.png"
[imgHeight]="14"
[imgWidth]="14"
>
</jqxButton>
`
})
export class App {}
|
|
imgHeight
# |
Size
|
16
|
Sets or gets the imgHeight property.
import { Component } from '@angular/core';
import { jqxButtonModule } from 'jqwidgets-ng/jqxbuttons';
@Component({
selector: 'app-root',
imports: [jqxButtonModule],
template: `
<jqxButton
#myButton
[width]="120"
[height]="40"
[imgPosition]="left"
[imgSrc]="https://jqwidgets.com/jquery-widgets-demo/images/andrew.png"
[imgHeight]="14"
[imgWidth]="14"
>
</jqxButton>
`
})
export class App {}
|
|
imgPosition
# |
enum:ButtonPositions
|
'center'
|
enum ButtonPositions { left, center, right, top, bottom, topLeft, bottomLeft, topRight, bottomRight } Sets or gets the imgPosition property.
import { Component } from '@angular/core';
import { jqxButtonModule } from 'jqwidgets-ng/jqxbuttons';
@Component({
selector: 'app-root',
imports: [jqxButtonModule],
template: `
<jqxButton
#myButton
[width]="120"
[height]="40"
[imgPosition]="'left'"
[imgSrc]="'https://jqwidgets.com/jquery-widgets-demo/images/andrew.png'"
>
</jqxButton>
`
})
export class App {}
|
|
roundedCorners
# |
enum:ButtonRoundedCorners
|
all
|
enum ButtonRoundedCorners { top, bottom, all, left, right, top-right, top-left, bottom-right, bottom-left } Sets or gets the roundedCorners property.
import { Component } from '@angular/core';
import { jqxButtonModule } from 'jqwidgets-ng/jqxbuttons';
@Component({
selector: 'app-root',
imports: [jqxButtonModule],
template: `
<jqxButton #myButton [width]="120" [height]="40" [roundedCorners]="'top'"> </jqxButton>
`
})
export class App {}
|
|
rtl
# |
Boolean
|
false
|
Sets or gets the rtl property.
import { Component } from '@angular/core';
import { jqxButtonModule } from 'jqwidgets-ng/jqxbuttons';
@Component({
selector: 'app-root',
imports: [jqxButtonModule],
template: ` <jqxButton #myButton [width]="120" [height]="40" [rtl]="true"> </jqxButton> `
})
export class App {}
|
|
enableDefault
# |
Boolean
|
true
|
import { Component, viewChild } from '@angular/core';
import { jqxButtonComponent, jqxButtonModule } from 'jqwidgets-ng/jqxbuttons';
@Component({
selector: 'app-root',
imports: [jqxButtonModule],
template: `<jqxButton
#myButton
[width]="120"
[height]="40"
[value]="'Click Me!'"
[enableDefault]="false"
>
</jqxButton>`,
styles: [``]
})
export class App {
readonly myButton = viewChild.required<jqxButtonComponent>('myButton');
}
|
|
cursor
# |
String
|
'arrow'
|
import { Component, viewChild } from '@angular/core';
import { jqxButtonComponent, jqxButtonModule } from 'jqwidgets-ng/jqxbuttons';
@Component({
selector: 'app-root',
imports: [jqxButtonModule],
template: `<jqxButton
#myButton
[width]="120"
[height]="40"
[value]="'Click Me!'"
[cursor]="'arrow'"
>
</jqxButton>`,
styles: [``]
})
export class App {
readonly myButton = viewChild.required<jqxButtonComponent>('myButton');
}
|
|
textPosition
# |
enum:ButtonPositions
|
''
|
enum ButtonPositions { left, center, right, top, bottom, topLeft, bottomLeft, topRight, bottomRight } Sets or gets the textPosition property.
import { Component } from '@angular/core';
import { jqxButtonModule } from 'jqwidgets-ng/jqxbuttons';
@Component({
selector: 'app-root',
imports: [jqxButtonModule],
template: `
<jqxButton #myButton [width]="120" [height]="40" [textPosition]="'right'"> </jqxButton>
`
})
export class App {}
|
|
textImageRelation
# |
enum:ButtonTextImageRelation
|
'overlay'
|
enum ButtonTextImageRelation { imageBeforeText, imageAboveText, textAboveImage, textBeforeImage, overlay } Sets or gets the textImageRelation property.
import { Component } from '@angular/core';
import { jqxButtonModule } from 'jqwidgets-ng/jqxbuttons';
@Component({
selector: 'app-root',
imports: [jqxButtonModule],
template: `
<jqxButton
#myButton
[width]="120"
[height]="40"
[imgPosition]="'left'"
[imgSrc]="'https://jqwidgets.com/jquery-widgets-demo/images/andrew.png'"
[textImageRelation]="'imageBeforeText'"
>
</jqxButton>
`
})
export class App {}
|
|
theme
# |
String
|
''
|
Sets or gets the theme property.
import { Component } from '@angular/core';
import { jqxButtonModule } from 'jqwidgets-ng/jqxbuttons';
@Component({
selector: 'app-root',
imports: [jqxButtonModule],
template: `
<jqxButton #myButton [width]="120" [height]="40" [theme]="'energyblue'"> </jqxButton>
`
})
export class App {}
|
|
template
# |
enum:ButtonTemplate
|
'default'
|
enum ButtonTemplate { default, primary, success, warning, danger, inverse, info, link } Sets or gets the template property.
import { Component } from '@angular/core';
import { jqxButtonModule } from 'jqwidgets-ng/jqxbuttons';
@Component({
selector: 'app-root',
imports: [jqxButtonModule],
template: `
<jqxButton #myButton [width]="120" [height]="40" [template]="'success'"> </jqxButton>
`
})
export class App {}
|
|
toggled
# |
Boolean
|
false
|
Sets or gets the toggled property.
import { Component } from '@angular/core';
import { jqxButtonModule } from 'jqwidgets-ng/jqxbuttons';
@Component({
selector: 'app-root',
imports: [jqxButtonModule],
template: ` <jqxButton #myButton [width]="120" [height]="40" [toggled]="true"> </jqxButton> `
})
export class App {}
|
|
width
# |
Size
|
null
|
Sets or gets the width property.
import { Component } from '@angular/core';
import { jqxButtonModule } from 'jqwidgets-ng/jqxbuttons';
@Component({
selector: 'app-root',
imports: [jqxButtonModule],
template: ` <jqxButton #myButton [width]="240px" [height]="40"> </jqxButton> `
})
export class App {}
|
|
value
# |
String
|
''
|
Sets or gets the value property.
import { Component } from '@angular/core';
import { jqxButtonModule } from 'jqwidgets-ng/jqxbuttons';
@Component({
selector: 'app-root',
imports: [jqxButtonModule],
template: ` <jqxButton #myButton [width]="120" [height]="40" [value]="'Button'"> </jqxButton> `
})
export class App {}
|
|
|
|
click
# |
Event
|
|
This event is triggered when the button is clicked.
Code examples #
Bind to the click event of jqxButton.
import { Component } from '@angular/core';
import { jqxButtonModule } from 'jqwidgets-ng/jqxbuttons';
@Component({
selector: 'app-root',
imports: [jqxButtonModule],
template: `
<jqxButton #myButton (onClick)="Click($event)" [width]="120" [height]="40"> </jqxButton>
`
})
export class App {
Click(event: any): void {
// Do Something
}
}
|
|
|
| Name | Return Type | Arguments |
|
destroy
# |
Void
|
None
|
import { Component, AfterViewInit, viewChild } from '@angular/core';
import { jqxButtonModule, jqxButtonComponent } from 'jqwidgets-ng/jqxbuttons';
@Component({
selector: 'app-root',
imports: [jqxButtonModule],
template: ` <jqxButton #myButton [width]="120" [height]="40"> </jqxButton> `
})
export class App implements AfterViewInit {
readonly myButton = viewChild.required<jqxButtonComponent>('myButton');
ngAfterViewInit(): void {
this.myButton().destroy();
}
}
|
|
focus
# |
Void
|
None
|
import { Component, AfterViewInit, viewChild } from '@angular/core';
import { jqxButtonModule, jqxButtonComponent } from 'jqwidgets-ng/jqxbuttons';
@Component({
selector: 'app-root',
imports: [jqxButtonModule],
template: ` <jqxButton #myButton [width]="120" [height]="40"> </jqxButton> `
})
export class App implements AfterViewInit {
readonly myButton = viewChild.required<jqxButtonComponent>('myButton');
ngAfterViewInit(): void {
this.myButton().focus();
}
}
|
|
render
# |
Void
|
None
|
import { Component, AfterViewInit, viewChild } from '@angular/core';
import { jqxButtonModule, jqxButtonComponent } from 'jqwidgets-ng/jqxbuttons';
@Component({
selector: 'app-root',
imports: [jqxButtonModule],
template: ` <jqxButton #myButton [width]="120" [height]="40"> </jqxButton> `
})
export class App implements AfterViewInit {
readonly myButton = viewChild.required<jqxButtonComponent>('myButton');
ngAfterViewInit(): void {
this.myButton().render();
}
}
|
|
val
# |
String
|
value: String
|
import { Component, AfterViewInit, viewChild } from '@angular/core';
import { jqxButtonModule, jqxButtonComponent } from 'jqwidgets-ng/jqxbuttons';
@Component({
selector: 'app-root',
imports: [jqxButtonModule],
template: ` <jqxButton #myButton [width]="120" [height]="40"> </jqxButton>`
})
export class App implements AfterViewInit {
readonly myButton = viewChild.required<jqxButtonComponent>('myButton');
ngAfterViewInit(): void {
let value = this.myButton().val('New Text');
}
}
|