Wijmo UI for the Web
inputType Option

Determines the type of html editor for filter and cells. Possible values are: "number", "date", "datetime", "datetime-local", "month", "time", "text".

Syntax
Javascript (Usage) 
$(function () {
    
    // Get value
    var returnsValue; // Type:  string
    returnsValue = $(".selector").c1field("option", "inputType");
    
    // Set value
    var newValue; // Type:  string
    $(".selector").c1field("option", "inputType", newValue);
        
});
Javascript (Specification) 
var inputType : string;
Example
$("#element").wijgrid({ columns: [{ inputType: "text" }]});
Remarks
If the value is set then input type element is used with "type" attribute set to the value. If the value is not set then: - in desktop environment a "text" input element is used as the editor. - in mobile environment a "number" input element is used for columns having "number" and "currency" dataType; for columns where dataType = "datetime" a "datetime" input element is used, otherwise a "text" input element is shown.
Browser Compatibility
7
5
5

See Also

Reference

options type
c1field jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.