spring-projects / spring-webflow

Spring Web Flow
https://spring.io/projects/spring-webflow
Apache License 2.0
331 stars 233 forks source link

Support customisation of the modal dialog (popup feature) [SWF-1486] #671

Open spring-operator opened 13 years ago

spring-operator commented 13 years ago

Duncan Eley opened SWF-1486 and commented

The modal dialog (dijit.Dialog) displayed by Spring JS when using the "popup" feature of Spring.AjaxEventDecoration cannot be passed properties for customisation e.g. setting the width, height, title, whether or not it is draggable etc.

One way to support this would be to add support for a widgetAttrs parameter to Spring.AjaxEventDecoration (already supported by Spring.ElementDecoration) e.g.

Spring.addDecoration(new Spring.AjaxEventDecoration({
    elementId:"startFlow",
    event:"onclick",
    popup:true,
    widgetAttrs:{title:"My Dialog Title",style:"width:500px",draggable:false},
    params:{fragments:"body",mode:"embedded"}
}));

Attached is a patch file for Spring-Dojo.js to support this.


Affects: 2.3.0

Attachments:

1 votes, 2 watchers

spring-operator commented 12 years ago

Carlos Chávez commented

I reviewed the version 2.3.1 and still the issue, still can't send attributes to the dialog.