EasyUI Forum
April 20, 2024, 01:00:45 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Panel Tools  (Read 3923 times)
jahangir
Jr. Member
**
Posts: 50



View Profile Email
« on: December 25, 2020, 10:46:00 AM »

How to add panel tool on left side of panel header.
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: December 27, 2020, 01:56:50 AM »

Please try to set the 'header' property to custom the panel header.
Code:
<div class="easyui-panel" style="width:700px;height:200px;padding:10px;"
    data-options="header:'#hh'">
</div>
<div id="hh">
  <div class="panel-title f-row">
    <div class="panel-tool" style="position:relative">
      <a href="javascript:void(0)" class="icon-add" onclick="javascript:alert('add')"></a>
      <a href="javascript:void(0)" class="icon-edit" onclick="javascript:alert('edit')"></a>
      <a href="javascript:void(0)" class="icon-cut" onclick="javascript:alert('cut')"></a>
      <a href="javascript:void(0)" class="icon-help" onclick="javascript:alert('help')"></a>
    </div>
    <div>Panel Header</div>
  </div>
</div>
Logged
thecyberzone
Full Member
***
Posts: 176



View Profile Email
« Reply #2 on: January 17, 2021, 09:26:18 AM »

And what about css classes against panel-title f-row, are they readily available in jeasyui or have to define?
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #3 on: January 18, 2021, 01:07:56 AM »

The 'f-*' css classes are defined in 'flex.css' that has been integrated into the theme file 'easyui.css'.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!