how I can create and add new options for jQuery dialog? for example: I like that through on the setting options can control the display of title bar or display the close but
Starting from jQuery UI 1.9 , you can extend widgets in a much nicer way without creating a new widget.
http://learn.jquery.com/jquery-ui/widget-factory/extending-widgets/
See - Redefining Widgets.
$.widget( "ui.dialog", $.ui.dialog, {
open: function() {
console.log( "open" );
return this._super();
}
});
$( "" ).dialog();