浮动面板

可以通过 data 属性传入参数, 也可以通过javascript方法传入 事件绑定data-toggle="float_panel"

名称 描述
toggle 事件绑定 固定值float_panel, 如果以data方式传入参数,此项必填
text 面板中的内容 -
direction 面板弹出方向 right,center,bottom
url -
width 面板宽度 非必填, 默认宽是 560px;
height 面板高度 非必填, 默认宽是 340px;
request_type 请求类型 get,post...默认是get
 
      // data 方式
      <button  data-direction="right | center | bottom" data-toggle="float_panel" data-width="200px" id="right" data-text="请设置内容"></button>
      // javascript方式
      $("#right").float_panel({
        direction: right | center | bottom,
        width: 200px,
        height: 200px,
        text: 请设置内容
      })
     
 
      // data 方式
      <button data-direction="right | center | bottom" data-toggle="float_panel" data-width="200px" id="right" data-url="/frontend/float_panel_html"></button>
      // javascript方式
      $("#right").float_panel({
        direction: right | center | bottom,
        width: 200px,
        height: 200px,
        url: /frontend/float_panel_html
      })
     
弹出
默认