jquery UI dialog: how to initialize without a title bar?

前端 未结 23 1770
春和景丽
春和景丽 2020-11-29 15:03

Is it possible to open a jQuery UI Dialog without a title bar?

23条回答
  •  长情又很酷
    2020-11-29 15:42

    I find it more efficient, and more readable, to use the open event, and hide the title bar from there. I don't like using page-global class name searches.

    open: function() { $(this).closest(".ui-dialog").find(".ui-dialog-titlebar:first").hide(); }
    

    Simple.

提交回复
热议问题