EasyUI Forum
April 19, 2024, 06:45:22 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: datagrid validatebox vs. combobox  (Read 3880 times)
jaimi
Full Member
***
Posts: 119


View Profile
« on: August 30, 2017, 09:11:52 PM »

I want to define a validatebox with prompt:

It doesn't show the prompt.
,{field:'PUA_STATUS',title:'Status',width:080,sortable:'true'
    ,editor:{ type:'validatebox'
              ,options:{ required:true
                    ,disabled:false
                ,editable:true
                      ,prompt:'Status...'
                  ,missingMessage: 'Geben Sie den Status ein.'
          }//options
     }//editor
     //,editor:{type:'validatebox',options:{required:false}}
    }//field

If I make a combobox of it then it shows the prompt. Whats wrong?

,{field:'PUA_STATUS',title:'Status',width:080,sortable:'true'
    ,editor:{ type:'combobox'
              ,options:{ required:true
                   ,disabled:false
             ,editable:true
                      ,prompt:'Status...'
                  ,missingMessage: 'Geben Sie den Status ein.'
          }//options
     }//editor
    }//field

It works when I make a textbox out of it:
,{field:'PUA_STATUS',title:'Status',width:080,sortable:'true'
    ,editor:{ type:'textbox'
              ,options:{ required:true
                   ,disabled:false
             ,editable:true
                      ,prompt:'Status...'
                  ,missingMessage: 'Geben Sie den Status ein.'
          }//options
     }//editor
    }//field
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: August 31, 2017, 07:10:19 AM »

The 'validatebox' is a pure <input> element. It hasn't the 'prompt' property. You have to attach a 'placeholder' attribute by yourself.
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!