TimeTrex Community Edition v16.2.0
This commit is contained in:
65
interface/html5/global/widgets/separated_box/SeparatedBox.js
Normal file
65
interface/html5/global/widgets/separated_box/SeparatedBox.js
Normal file
@@ -0,0 +1,65 @@
|
||||
( function( $ ) {
|
||||
|
||||
$.fn.SeparatedBox = function( options ) {
|
||||
var opts = $.extend( {}, $.fn.SeparatedBox.defaults, options );
|
||||
|
||||
var $this = this;
|
||||
|
||||
var label = '';
|
||||
|
||||
var field;
|
||||
|
||||
this.getField = function() {
|
||||
return field;
|
||||
};
|
||||
|
||||
this.setValue = function() {
|
||||
|
||||
};
|
||||
|
||||
this.getValue = function() {
|
||||
|
||||
};
|
||||
|
||||
this.setErrorStyle = function( errStr, show ) {
|
||||
|
||||
};
|
||||
|
||||
this.showErrorTip = function( sec ) {
|
||||
|
||||
};
|
||||
|
||||
this.hideErrorTip = function() {
|
||||
|
||||
};
|
||||
|
||||
this.clearErrorStyle = function() {
|
||||
|
||||
};
|
||||
|
||||
this.each( function() {
|
||||
|
||||
var o = $.meta ? $.extend( {}, opts, $( this ).data() ) : opts;
|
||||
|
||||
field = o.field;
|
||||
|
||||
var label_span = $( this ).find( '.label' );
|
||||
|
||||
label = o.label;
|
||||
|
||||
label_span.text( label );
|
||||
|
||||
} );
|
||||
|
||||
return this;
|
||||
|
||||
};
|
||||
|
||||
$.fn.SeparatedBox.defaults = {};
|
||||
$.fn.SeparatedBox.html_template = `
|
||||
<div class="separated-box">
|
||||
<span class="label"></span>
|
||||
</div>
|
||||
`;
|
||||
|
||||
} )( jQuery );
|
Reference in New Issue
Block a user