<div class="gmail_quote">2009/8/27 Scott González <span dir="ltr"><<a href="mailto:scott.gonzalez@gmail.com">
scott.gonzalez@gmail.com</a>></span>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Thu, Aug 27, 2009 at 7:19 PM, Richard D. Worth <span dir="ltr"><<a href="mailto:rdworth@gmail.com" target="_blank">
rdworth@gmail.com</a>></span> wrote:
</div><div class="gmail_quote"><div class="im">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Interesting. I'm wondering if the next change to dialog buttons shouldn't be to have them be jQuery UI Buttons? If the buttons have ids, maybe go directly to them with the button plugin for getting and setting their button properties? instead of going through dialog, which can instead just focus on creating the button pane.</blockquote>
<div>
</div></div><div>What are you envisioning with this?</div><div>
</div><div>$('#dialog').dialog({</div><div> buttons: [</div><div> $('<button></button>').button({ ... }),</div>
<div>
$('<button></button>').button({ ... })</div><div> ]</div><div>});</div><div>
</div><div>or:</div><div>
</div><div>$('#dialog').dialog({</div><div> buttons: [</div><div> '#foo',</div>
<div> '#bar'</div><div> ]</div><div>})</div><div>.find('#foo').button({ ... )</div><div>.end.find('#bar').button({ ... });</div><div>
</div><div>or something else?</div></div></blockquote>
<div>
</div><div>I would think that the button dialog would pass through the button options internally. So something similar to:</div><div>
</div><div>buttons: [{ ... }, { ... }]</div><div>
</div><div>and then internally as dialog iterates to create the buttons: $('<button></button>').button({options});</div>
<div>
</div><div>This would also facilitate allowing any additional attributes for buttons that would be specific to dialogs. Such as if you could specify either right or left foating.</div><div>
</div><div>- Jonathan</div>
<div> </div></div>