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

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

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

23条回答
  •  借酒劲吻你
    2020-11-29 16:00

    This worked for me

     open: function(event, ui) {
                $(".ui-dialog-titlebar", $(this).parent())
                  .hide();
    

    Full

    $speedbump.dialog({
      dialogClass: 'speedbump-container',
      autoOpen: false,
      closeOnEscape: false,
      modal: true,
      resizable: false,
      draggable: false,
      create: function () {        
          $speedbump
            .closest('.ui-dialog')
            .attr('id', 'speedbump-container');
      },
      open: function(event, ui) {
        $(".ui-dialog-titlebar", $(this).parent())
          .hide();
    }
    

提交回复
热议问题