class type t =Inheritsobject
..end
method disabled : bool Js.t Js.readonly_prop
True if this button is disabled.
Defaults to: false
bool Js.t Js.readonly_prop
: True if this button is hidden.
Defaults to: false
Ext_menu_Menu.t Js.t Js.prop
:
method pressed : bool Js.t Js.readonly_prop
True if this button is pressed (only if enableToggle = true).
Defaults to: false
method template : Ext_Template.t Js.t Js.prop
A Template used to create the Button's DOM structure.
Instances, or subclasses which need a different DOM structure may provide a different template layout in conjunction with an implementation of getTemplateArgs.
method disable : bool Js.t Js.optdef -> unit Js.meth
inherit docs
Disable the component.
Parameters:
bool Js.t
(optional)
Passing true
will suppress the disable
event from being fired.
method enable : bool Js.t Js.optdef -> unit Js.meth
inherit docs
Enable the component
Parameters:
bool Js.t
(optional)
Passing true
will suppress the enable
event from being fired.
method getTemplateArgs : 'a. 'a Js.t Js.meth
This method returns an object which provides substitution parameters for the XTemplate used to create this Button's DOM structure.
Instances or subclasses which use a different Template to create a different DOM structure may need to provide their own implementation of this method.
Returns:
_ Js.t
Substitution data for a Template. The default implementation which provides data for the default template returns an Object containing the following properties:
method getText : Js.js_string Js.t Js.meth
Gets the text for this Button
Returns:
Js.js_string Js.t
The button text
method hasVisibleMenu : bool Js.t Js.meth
Returns true if the button has a menu and it is visible
method hideMenu : (< _isLayoutRoot : bool Js.t Js.prop; addChildEls : unit Js.meth;
addCls : 'd. 'd Js.t -> 'c Js.t Js.meth;
addClsWithUI : 'e 'f. 'e Js.t -> 'f Js.t -> unit Js.meth;
addEvents : 'g. 'g Js.t -> unit Js.meth;
addListener : 'h 'i 'j 'k 'l.
'h Js.t ->
'i Js.callback Js.optdef ->
'j Js.t Js.optdef -> 'k Js.t Js.optdef -> 'l Js.t Js.meth;
addManagedListener : 'm 'n 'o 'p 'q 'r.
'm Js.t ->
'n Js.t ->
'o Js.callback Js.optdef ->
'p Js.t Js.optdef ->
'q Js.t Js.optdef -> 'r Js.t Js.meth;
addPropertyToState : 's.
's Js.t ->
Js.js_string Js.t ->
Js.js_string Js.t Js.optdef -> bool Js.t Js.meth;
addStateEvents : 't. 't Js.t -> unit Js.meth;
addUIClsToElement : Js.js_string Js.t -> unit Js.meth;
afterComponentLayout : 'u 'v.
Js.number Js.t ->
Js.number Js.t ->
'u Js.t -> 'v Js.t -> unit Js.meth;
afterHide : 'w 'x.
'w Js.callback Js.optdef ->
'x Js.t Js.optdef -> unit Js.meth;
afterRender : unit Js.meth;
afterSetPosition : Js.number Js.t -> Js.number Js.t -> unit Js.meth;
afterShow : 'y 'z 'a1.
'y Js.t Js.optdef ->
'z Js.callback Js.optdef ->
'a1 Js.t Js.optdef -> unit Js.meth;
alignTo : 'b1 'c1.
'b1 Js.t ->
Js.js_string Js.t Js.optdef ->
Js.number Js.t Js.js_array Js.t Js.optdef ->
'c1 Js.t Js.optdef -> 'c Js.t Js.meth;
anchorTo : 'd1 'e1 'f1 'g1.
'd1 Js.t ->
Js.js_string Js.t Js.optdef ->
Js.number Js.t Js.js_array Js.t Js.optdef ->
'e1 Js.t Js.optdef ->
'f1 Js.t Js.optdef ->
'g1 Js.callback Js.optdef -> 'c Js.t Js.meth;
animate : 'h1 'i1. 'h1 Js.t -> 'i1 Js.t Js.meth;
applyState : 'j1. 'j1 Js.t -> unit Js.meth;
beforeBlur : Ext_EventObject.t Js.t -> unit Js.meth;
beforeComponentLayout : Js.number Js.t -> Js.number Js.t -> unit Js.meth;
beforeDestroy : unit Js.meth;
beforeFocus : Ext_EventObject.t Js.t -> unit Js.meth;
beforeLayout : unit Js.meth; beforeShow : unit Js.meth;
bubble : 'k1 'l1 'm1.
'k1 Js.callback ->
'l1 Js.t Js.optdef ->
'm1 Js.js_array Js.t Js.optdef -> 'c Js.t Js.meth;
calculateConstrainedPosition : 'n1.
'n1 Js.t Js.optdef ->
Js.number Js.t Js.js_array Js.t Js.optdef ->
bool Js.t Js.optdef ->
Js.number Js.t Js.js_array Js.t Js.optdef ->
Js.number Js.t Js.js_array Js.t Js.meth;
callParent : 'o1 'p1. 'o1 Js.t -> 'p1 Js.t Js.meth;
callSuper : 'q1 'r1. 'q1 Js.t -> 'r1 Js.t Js.meth;
cancelFocus : unit Js.meth; center : 's1. 's1 Js.t Js.meth;
child : 't1 'u1. 't1 Js.t Js.optdef -> 'u1 Js.t Js.meth;
clearListeners : unit Js.meth; clearManagedListeners : unit Js.meth;
cloneConfig : 'v1. 'v1 Js.t -> 'c Js.t Js.meth;
contentPaddingProperty : Js.js_string Js.t Js.prop;
destroy : unit Js.meth; disable : bool Js.t Js.optdef -> unit Js.meth;
disabled : bool Js.t Js.readonly_prop; doAutoRender : unit Js.meth;
doComponentLayout : 'w1. 'w1 Js.t Js.meth;
doConstrain : 'x1. 'x1 Js.t Js.optdef -> unit Js.meth;
down : 'y1 'z1. 'y1 Js.t Js.optdef -> 'z1 Js.t Js.meth;
draggable : bool Js.t Js.readonly_prop;
enable : bool Js.t Js.optdef -> unit Js.meth;
enableBubble : 'a2. 'a2 Js.t -> unit Js.meth;
ensureAttachedToBody : bool Js.t Js.optdef -> unit Js.meth;
findParentBy : 'b2 'c2. 'b2 Js.callback -> 'c2 Js.t Js.meth;
findParentByType : 'd2 'e2. 'd2 Js.t -> 'e2 Js.t Js.meth;
findPlugin : Js.js_string Js.t -> Ext_AbstractPlugin.t Js.t Js.meth;
fireEvent : 'f2. Js.js_string Js.t -> 'f2 Js.t -> bool Js.t Js.meth;
fireEventArgs : 'g2.
Js.js_string Js.t ->
'g2 Js.t Js.js_array Js.t -> bool Js.t Js.meth;
floatParent : 'h2. 'h2 Js.t Js.readonly_prop;
focus : 'i2 'j2 'k2.
bool Js.t Js.optdef ->
'i2 Js.t Js.optdef ->
'j2 Js.callback Js.optdef ->
'k2 Js.callback Js.optdef -> 'c Js.t Js.meth;
frameSize : 'l2. 'l2 Js.t Js.readonly_prop;
getActiveAnimation : 'm2. 'm2 Js.t Js.meth;
getAlignToXY : 'n2.
'n2 Js.t ->
Js.js_string Js.t Js.optdef ->
Js.number Js.t Js.js_array Js.t Js.optdef ->
Js.number Js.t Js.js_array Js.t Js.meth;
getAnchorXY : 'o2.
Js.js_string Js.t Js.optdef ->
bool Js.t Js.optdef ->
'o2 Js.t Js.optdef ->
Js.number Js.t Js.js_array Js.t Js.meth;
getBox : 'p2.
bool Js.t Js.optdef -> bool Js.t Js.optdef -> 'p2 Js.t Js.meth;
getBubbleTarget : 'q2. 'q2 Js.t Js.meth;
getConstrainVector : 'r2 's2.
'r2 Js.t Js.optdef ->
Js.number Js.t Js.js_array Js.t Js.optdef ->
Js.number Js.t Js.js_array Js.t Js.optdef ->
's2 Js.t Js.meth;
getEl : Ext_dom_Element.t Js.t Js.meth;
getHeight : Js.number Js.t Js.meth; getId : Js.js_string Js.t Js.meth;
getInitialConfig : 't2. Js.js_string Js.t Js.optdef -> 't2 Js.t Js.meth;
getInsertPosition : 'u2. 'u2 Js.t -> Dom_html.element Js.t Js.meth;
getItemId : Js.js_string Js.t Js.meth;
getLoader : Ext_ComponentLoader.t Js.t Js.meth;
getLocalX : Js.number Js.t Js.meth;
getLocalXY : Js.number Js.t Js.js_array Js.t Js.meth;
getLocalY : Js.number Js.t Js.meth;
getOffsetsTo : 'v2. 'v2 Js.t -> Js.number Js.t Js.js_array Js.t Js.meth;
getPlugin : Js.js_string Js.t -> Ext_AbstractPlugin.t Js.t Js.meth;
getPosition : bool Js.t Js.optdef ->
Js.number Js.t Js.js_array Js.t Js.meth;
getRegion : Ext_util_Region.t Js.t Js.meth;
getSize : 'w2. 'w2 Js.t Js.meth;
getSizeModel : 'x2 'y2. 'x2 Js.t -> 'y2 Js.t Js.meth;
getState : 'z2. 'z2 Js.t Js.meth; getTemplateArgs : 'a. 'a Js.t Js.meth;
getText : Js.js_string Js.t Js.meth;
getViewRegion : Ext_util_Region.t Js.t Js.meth;
getWidth : Js.number Js.t Js.meth; getX : Js.number Js.t Js.meth;
getXType : Js.js_string Js.t Js.meth;
getXTypes : Js.js_string Js.t Js.meth;
getXY : Js.number Js.t Js.js_array Js.t Js.meth;
getY : Js.number Js.t Js.meth;
hasCls : Js.js_string Js.t -> bool Js.t Js.meth;
hasListener : Js.js_string Js.t -> bool Js.t Js.meth;
hasListeners : 'a3. 'a3 Js.t Js.readonly_prop;
hasUICls : Js.js_string Js.t -> unit Js.meth;
hasVisibleMenu : bool Js.t Js.meth; hidden : bool Js.t Js.readonly_prop;
hide : 'b3 'c3 'd3.
'b3 Js.t Js.optdef ->
'c3 Js.callback Js.optdef ->
'd3 Js.t Js.optdef -> 'c Js.t Js.meth;
hideMenu : 'b; initComponent : unit Js.meth;
initConfig : 'e3. 'e3 Js.t -> 'c Js.t Js.meth; initEvents : unit Js.meth;
initRenderData : 'f3. 'f3 Js.t Js.meth;
is : Js.js_string Js.t -> bool Js.t Js.meth;
isComponent : bool Js.t Js.prop;
isDescendantOf : 'g3. 'g3 Js.t -> bool Js.t Js.meth;
isDisabled : bool Js.t Js.meth; isDraggable : bool Js.t Js.meth;
isDroppable : bool Js.t Js.meth; isFloating : bool Js.t Js.meth;
isHidden : bool Js.t Js.meth; isLayoutRoot : unit Js.meth;
isLayoutSuspended : bool Js.t Js.meth; isObservable : bool Js.t Js.prop;
isVisible : bool Js.t Js.optdef -> bool Js.t Js.meth;
isXType : Js.js_string Js.t -> bool Js.t Js.optdef -> bool Js.t Js.meth;
maskOnDisable : bool Js.t Js.prop; menu : Ext_menu_Menu.t Js.t Js.prop;
mon : 'h3 'i3 'j3 'k3 'l3 'm3.
'h3 Js.t ->
'i3 Js.t ->
'j3 Js.callback Js.optdef ->
'k3 Js.t Js.optdef -> 'l3 Js.t Js.optdef -> 'm3 Js.t Js.meth;
move : 'n3.
Js.js_string Js.t ->
Js.number Js.t -> 'n3 Js.t Js.optdef -> unit Js.meth;
mun : 'o3 'p3 'q3 'r3.
'o3 Js.t ->
'p3 Js.t ->
'q3 Js.callback Js.optdef -> 'r3 Js.t Js.optdef -> unit Js.meth;
nextNode : Js.js_string Js.t Js.optdef -> 'c Js.t Js.meth;
nextSibling : Js.js_string Js.t Js.optdef -> 'c Js.t Js.meth;
on : 's3 't3 'u3 'v3 'w3.
's3 Js.t ->
't3 Js.callback Js.optdef ->
'u3 Js.t Js.optdef -> 'v3 Js.t Js.optdef -> 'w3 Js.t Js.meth;
onAdded : 'x3. 'x3 Js.t -> Js.number Js.t -> unit Js.meth;
onDestroy : unit Js.meth; onDisable : unit Js.meth;
onEnable : unit Js.meth;
onHide : 'y3 'z3 'a4.
'y3 Js.t Js.optdef ->
'z3 Js.callback Js.optdef -> 'a4 Js.t Js.optdef -> unit Js.meth;
onPosition : Js.number Js.t -> Js.number Js.t -> unit Js.meth;
onRemoved : bool Js.t -> unit Js.meth;
onRender : Ext_dom_Element.t Js.t -> Js.number Js.t -> unit Js.meth;
onResize : 'b4 'c4 'd4 'e4.
'b4 Js.t -> 'c4 Js.t -> 'd4 Js.t -> 'e4 Js.t -> unit Js.meth;
onShow : 'f4 'g4 'h4.
'f4 Js.t Js.optdef ->
'g4 Js.callback Js.optdef -> 'h4 Js.t Js.optdef -> unit Js.meth;
onShowComplete : 'i4 'j4.
'i4 Js.callback Js.optdef ->
'j4 Js.t Js.optdef -> unit Js.meth;
ownerCt : 'k4. 'k4 Js.t Js.readonly_prop;
postBlur : Ext_EventObject.t Js.t -> unit Js.meth;
pressed : bool Js.t Js.readonly_prop;
previousNode : Js.js_string Js.t Js.optdef -> 'c Js.t Js.meth;
previousSibling : Js.js_string Js.t Js.optdef -> 'c Js.t Js.meth;
query : Js.js_string Js.t Js.optdef ->
Ext_Component.t Js.js_array Js.t Js.meth;
queryBy : 'l4 'm4.
'l4 Js.callback ->
'm4 Js.t Js.optdef -> Ext_Component.t Js.js_array Js.t Js.meth;
queryById : 'n4.
Js.js_string Js.t -> (#Ext_Component.t as 'n4) Js.t Js.meth;
registerFloatingItem : 'o4. 'o4 Js.t -> unit Js.meth;
relayEvents : 'p4 'q4.
'p4 Js.t ->
Js.js_string Js.t Js.js_array Js.t ->
Js.js_string Js.t Js.optdef -> 'q4 Js.t Js.meth;
removeAnchor : 'c Js.t Js.meth;
removeChildEls : 'r4. 'r4 Js.callback -> unit Js.meth;
removeCls : 's4. 's4 Js.t -> 'c Js.t Js.meth;
removeClsWithUI : 't4. 't4 Js.t -> unit Js.meth;
removeListener : 'u4 'v4.
Js.js_string Js.t ->
'u4 Js.callback -> 'v4 Js.t Js.optdef -> unit Js.meth;
removeManagedListener : 'w4 'x4 'y4 'z4.
'w4 Js.t ->
'x4 Js.t ->
'y4 Js.callback Js.optdef ->
'z4 Js.t Js.optdef -> unit Js.meth;
removeUIClsFromElement : Js.js_string Js.t -> unit Js.meth;
render : 'a5 'b5. 'a5 Js.t Js.optdef -> 'b5 Js.t Js.optdef -> unit Js.meth;
rendered : bool Js.t Js.readonly_prop;
resumeEvent : Js.js_string Js.t -> unit Js.meth;
resumeEvents : unit Js.meth;
savePropToState : 'c5.
Js.js_string Js.t ->
'c5 Js.t ->
Js.js_string Js.t Js.optdef -> bool Js.t Js.meth;
savePropsToState : 'd5 'e5 'f5. 'd5 Js.t -> 'e5 Js.t -> 'f5 Js.t Js.meth;
saveState : unit Js.meth;
scrollBy : 'g5 'h5 'i5. 'g5 Js.t -> 'h5 Js.t -> 'i5 Js.t -> unit Js.meth;
scrollFlags : 'j5. 'j5 Js.t Js.readonly_prop;
self : Ext_Class.t Js.t Js.prop; sequenceFx : 'k5. 'k5 Js.t Js.meth;
setActive : 'l5. bool Js.t Js.optdef -> 'l5 Js.t Js.optdef -> unit Js.meth;
setAutoScroll : bool Js.t -> 'c Js.t Js.meth;
setBorder : 'm5. 'm5 Js.t -> unit Js.meth;
setBorderRegion : Js.js_string Js.t -> Js.js_string Js.t Js.meth;
setBox : 'n5 'o5. 'n5 Js.t -> 'o5 Js.t Js.optdef -> 'c Js.t Js.meth;
setDisabled : bool Js.t -> unit Js.meth;
setDocked : 'p5. 'p5 Js.t -> bool Js.t Js.optdef -> 'c Js.t Js.meth;
setGlyph : 'q5. 'q5 Js.t -> 'c Js.t Js.meth;
setHandler : 'r5 's5.
'r5 Js.callback -> 's5 Js.t Js.optdef -> 'c Js.t Js.meth;
setHeight : Js.number Js.t -> 'c Js.t Js.meth;
setHref : Js.js_string Js.t -> unit Js.meth;
setIcon : Js.js_string Js.t -> 'c Js.t Js.meth;
setIconCls : Js.js_string Js.t -> 'c Js.t Js.meth;
setLoading : 't5 'u5. 't5 Js.t -> bool Js.t Js.optdef -> 'u5 Js.t Js.meth;
setLocalX : Js.number Js.t -> 'c Js.t Js.meth;
setLocalXY : 'v5. 'v5 Js.t -> Js.number Js.t Js.optdef -> 'c Js.t Js.meth;
setLocalY : Js.number Js.t -> 'c Js.t Js.meth;
setMargin : 'w5. 'w5 Js.t -> unit Js.meth;
setOverflowXY : Js.js_string Js.t -> Js.js_string Js.t -> 'c Js.t Js.meth;
setPagePosition : 'x5 'y5.
'x5 Js.t ->
Js.number Js.t Js.optdef ->
'y5 Js.t Js.optdef -> 'c Js.t Js.meth;
setParams : 'z5. 'z5 Js.t -> unit Js.meth;
setPosition : 'a6 'b6.
'a6 Js.t ->
Js.number Js.t Js.optdef ->
'b6 Js.t Js.optdef -> 'c Js.t Js.meth;
setRegion : 'c6.
Ext_util_Region.t Js.t ->
'c6 Js.t Js.optdef -> 'c Js.t Js.meth;
setRegionWeight : Js.number Js.t -> Js.number Js.t Js.meth;
setScale : Js.js_string Js.t -> unit Js.meth;
setSize : 'd6 'e6. 'd6 Js.t -> 'e6 Js.t -> 'c Js.t Js.meth;
setText : Js.js_string Js.t -> 'c Js.t Js.meth;
setTextAlign : Js.js_string Js.t -> unit Js.meth;
setTooltip : 'f6. 'f6 Js.t -> 'c Js.t Js.meth;
setUI : Js.js_string Js.t -> unit Js.meth;
setVisible : bool Js.t -> 'c Js.t Js.meth;
setWidth : Js.number Js.t -> 'c Js.t Js.meth;
setX : 'g6. Js.number Js.t -> 'g6 Js.t Js.optdef -> 'c Js.t Js.meth;
setXY : 'h6.
Js.number Js.t Js.js_array Js.t ->
'h6 Js.t Js.optdef -> 'c Js.t Js.meth;
setY : 'i6. Js.number Js.t -> 'i6 Js.t Js.optdef -> 'c Js.t Js.meth;
show : 'j6 'k6 'l6.
'j6 Js.t Js.optdef ->
'k6 Js.callback Js.optdef ->
'l6 Js.t Js.optdef -> 'c Js.t Js.meth;
showAt : 'm6 'n6.
'm6 Js.t ->
Js.number Js.t Js.optdef ->
'n6 Js.t Js.optdef -> 'c Js.t Js.meth;
showBy : 'o6.
'o6 Js.t ->
Js.js_string Js.t Js.optdef ->
Js.number Js.t Js.js_array Js.t Js.optdef -> 'c Js.t Js.meth;
showMenu : 'p6. 'p6 Js.t -> unit Js.meth;
statics : Ext_Class.t Js.t Js.meth;
stopAnimation : Ext_dom_Element.t Js.t Js.meth;
suspendEvent : Js.js_string Js.t -> unit Js.meth;
suspendEvents : bool Js.t -> unit Js.meth; syncFx : 'q6. 'q6 Js.t Js.meth;
template : Ext_Template.t Js.t Js.prop; toBack : 'r6. 'r6 Js.t Js.meth;
toFront : 's6. bool Js.t Js.optdef -> 's6 Js.t Js.meth;
toggle : bool Js.t Js.optdef -> bool Js.t Js.optdef -> 'c Js.t Js.meth;
translatePoints : 't6 'u6.
't6 Js.t ->
Js.number Js.t Js.optdef -> 'u6 Js.t Js.meth;
un : 'v6 'w6.
Js.js_string Js.t ->
'v6 Js.callback -> 'w6 Js.t Js.optdef -> unit Js.meth;
up : 'x6 'y6 'z6.
'x6 Js.t Js.optdef -> 'y6 Js.t Js.optdef -> 'z6 Js.t Js.meth;
update : 'a7 'b7.
'a7 Js.t ->
bool Js.t Js.optdef ->
'b7 Js.callback Js.optdef -> unit Js.meth;
updateBox : 'c7. 'c7 Js.t -> 'c Js.t Js.meth;
updateLayout : 'd7. 'd7 Js.t Js.optdef -> unit Js.meth;
zIndexManager : Ext_ZIndexManager.t Js.t Js.readonly_prop;
zIndexParent : 'e7. 'e7 Js.t Js.readonly_prop; .. >
as 'c)
Js.t Js.meth as 'b
Hides this button's menu (if it has one)
Returns:
Ext_button_Button.t Js.t
this
method initComponent : unit Js.meth
inherit docs
The initComponent template method is an important initialization step for a Component. It is intended to be implemented by each subclass of Ext.Component to provide any needed constructor logic. The initComponent method of the class being created is called first, with each initComponent method up the hierarchy to Ext.Component being called thereafter. This makes it easy to implement and, if needed, override the constructor logic of the Component at any step in the hierarchy.
The initComponent method must contain a call to callParent in order to ensure that the parent class' initComponent method is also called.
All config options passed to the constructor are applied to this
before initComponent is called,
so you can simply access them with this.someOption
.
The following example demonstrates using a dynamic string for the text of a button at the time of instantiation of the class.
Ext.define('DynamicButtonText', {
extend: 'Ext.button.Button',
initComponent: function() {
this.text = new Date();
this.renderTo = Ext.getBody();
this.callParent();
}
});
Ext.onReady(function() {
Ext.create('DynamicButtonText');
});
method onDisable : unit Js.meth
See comments in onFocus
Allows addition of behavior to the disable operation.
After calling the superclass's onDisable
, the Component will be disabled.
method setGlyph : 'q5. 'q5 Js.t -> 'c Js.t Js.meth
Sets this button's glyph
Parameters:
_ Js.t
the numeric charCode or string charCode/font-family. This parameter expects a format consistent with that of glyph
Returns:
Ext_button_Button.t Js.t
this
method setHandler : 'r5 's5. 'r5 Js.callback -> 's5 Js.t Js.optdef -> 'c Js.t Js.meth
Assigns this Button's click handler
Parameters:
_ Js.callback
The function to call when the button is clicked
_ Js.t
(optional)
The scope (this
reference) in which the handler function is executed.
Defaults to this Button.
Returns:
Ext_button_Button.t Js.t
this
method setHref : Js.js_string Js.t -> unit Js.meth
Sets the href of the embedded anchor element to the passed URL.
Also appends any configured baseParams and parameters set through setParams.
Parameters:
Js.js_string Js.t
The URL to set in the anchor element.
method setIcon : Js.js_string Js.t -> 'c Js.t Js.meth
Sets the background image (inline style) of the button. This method also changes the value of the icon config internally.
Parameters:
Js.js_string Js.t
The path to an image to display in the button
Returns:
Ext_button_Button.t Js.t
this
method setIconCls : Js.js_string Js.t -> 'c Js.t Js.meth
Sets the CSS class that provides a background image to use as the button's icon. This method also changes the value of the iconCls config internally.
Parameters:
Js.js_string Js.t
The CSS class providing the icon image
Returns:
Ext_button_Button.t Js.t
this
method setParams : 'z5. 'z5 Js.t -> unit Js.meth
Sets the href of the link dynamically according to the params passed, and any baseParams configured.
Only valid if the Button was originally configured with a href
Parameters:
_ Js.t
Parameters to use in the href URL.
method setScale : Js.js_string Js.t -> unit Js.meth
Method to change the scale of the button. See scale for allowed configurations.
Parameters:
Js.js_string Js.t
The scale to change to.
method setText : Js.js_string Js.t -> 'c Js.t Js.meth
Sets this Button's text
Parameters:
Js.js_string Js.t
The button text
Returns:
Ext_button_Button.t Js.t
this
method setTextAlign : Js.js_string Js.t -> unit Js.meth
Sets the text alignment for this button.
Parameters:
Js.js_string Js.t
The new alignment of the button text. See textAlign.
method setTooltip : 'f6. 'f6 Js.t -> 'c Js.t Js.meth
Sets the tooltip for this Button.
Parameters:
_ Js.t
This may be:
Returns:
Ext_button_Button.t Js.t
this
method setUI : Js.js_string Js.t -> unit Js.meth
inherit docs
Sets the UI for the component. This will remove any existing UIs on the component. It will also loop through any
uiCls
set on the component and rename them so they include the new UI.
Parameters:
Js.js_string Js.t
The new UI for the component.
method showMenu : 'p6. 'p6 Js.t -> unit Js.meth
Shows this button's menu (if it has one)
Parameters:
_ Js.t
method toggle : bool Js.t Js.optdef -> bool Js.t Js.optdef -> 'c Js.t Js.meth
If a state it passed, it becomes the pressed state otherwise the current state is toggled.
Parameters:
bool Js.t
(optional)
Force a particular state
bool Js.t
(optional)
True to stop events being fired when calling this method.
Defaults to: falseReturns:
Ext_button_Button.t Js.t
this