How can I add a customized buttons to the AlloyUI Scheduler
's event popup? The event popup includes Save
, Cancel
, and Delete
buttons, but I would like to add another one (for example Edit
). I've looked through the Scheduler
s API Doc, but I cannot find any information on adding buttons to the event popup.
相关问题
- yui input group validation
- How to localize the alloyui scheduler component?
- Liferay portlet: redirect to an other jsp page fro
- How to add custom nodes and properties to AlloyUI
- AlloyUI (diagram-builder) extends
相关文章
- How to localize the alloyui scheduler component?
- Liferay portlet: redirect to an other jsp page fro
- How to add custom nodes and properties to AlloyUI
- 如何创建从JSON()一AlloyUI DiagramBuilder通过DiagramBuilder
- 采用合金UI LIFERAY表单验证(LifeRay form validation using A
- AlloyUI (diagram-builder) extends
- How can I get a localized version of a YUI 3 or Al
- LifeRay creating a new type of aui validator
The
SchedulerEventRecorder
class contains a reference to the popover which contains the form to which you are seeking to add buttons. However, I've tried to customize the toolbar footer (within the toolbar within the popover within the scheduler) which contains the buttons, and it doesn't seem possible. So I'm doubtful that there is an standard API method for customizing these buttons, and I'm also doubtful that the developers intended for these buttons to be customized at all. Therefore I would recommend not customizing the buttons.If you are certain that you would like to add to and customize these buttons in spite of the potential issues however, then I did find a way to do what you wanted. Every time the
Scheduler
's popover pops up, it shows only the default buttons. Even if you add buttons to it after it has been created, it will ignore or remove them or (most likely) get destroyed and then recreated and never show custom buttons. So any buttons must be added after the popover displays itself. To do this, you can execute a method after theSchedulerEventRecorder.showPopover()
method usingDo.after()
like so:Here's a runnable code example:
I have created my own request recorder:
and then use it: