"m-"
.click
, change
, blur
, focus
, dblclick
, keydown
, keyup
, keypress
, mouseenter
, mousemove
, mouseover
, mouseup
, copy
, cut
, paste
.m-
followed by the event name. For example m-click
.<w name='myButton' type='btn' m-click='[doClick]'>Click Me</w>The value of this attribute could be on of the following actions:
Type | Syntax | Description |
---|---|---|
Message | [message_name] | Publishes a message. For Example: m-click="[check_record_status]" |
Controller Function | [controllerName.fnName] | Executes the function fnName of the controller specified by controllerName .For Example: m-click="[myEmpRecordController.checkRecord]" |
Enable | enable($componentName) | Enables the component specified. For Example: m-click="enable($fld_emp_salary)" |
Disable | disable($componentName) | Enables the component specified. |
focus | focus($componentName) | Sets the focus to a specified component. |
toggle | toggle(disable, $componentName) | Toggles the disable state of a component. |
toggle | toggle(.class, $componentName) | Adds or removes a css class of a component. |
m-confirm
adds a confirmation dialog. The value of the attribute m-confirm
is the prompt. event.stopImmediatePropagation()
and event.preventDefault()
when the user cancels or rejects the confirmation.click
event.action events
, in particular it will be triggered on the click.action.validation()
stage to allow to cancel further actions without relaying on stopImmediatePropagation()
and preventDefault()
.click.action.handler()
or click.action.done()
, for example:
var myBtn = exc.component.get('btnDeleteRecord'); myBtn.onAction("click.action.handler()", function(event){ console.log("deleting the record..."); //my delete code here.. });The confirmation will not be triggered if the component has the
is-disabled
class.