function FK_InnerDscInput() { this.FontBold; this.FontSize; this.FontColor; this.Font; this.BorderStyle; this.BorderWidth; this.BorderCol; this.Attribute; this.IsPassword; this.Size; this.MaxLength; this.InnerText; this.Rows; // Databinding for property Attribute this.SetAttribute = function(data) { ///UserCodeRegionStart:[SetAttribute] (do not remove this comment.) this.Attribute = data; ///UserCodeRegionEnd: (do not remove this comment.) } // Databinding for property Attribute this.GetAttribute = function() { ///UserCodeRegionStart:[GetAttribute] (do not remove this comment.) return document.getElementById(this.ContainerName + "_cosa").value; ///UserCodeRegionEnd: (do not remove this comment.) } this.show = function() { ///UserCodeRegionStart:[show] (do not remove this comment.) //this.ContainerName if (this.Size == undefined) this.Size = 30; if (this.MaxLength == undefined) this.MaxLength = 35; if (this.BorderWidth== undefined) this.BorderWidth = 1; if (this.InnerText== undefined) this.InnerText = 'Coloque el texto aqui...'; if (this.BorderStyle== undefined) this.BorderStyle = 'Solid'; if (this.FontColor == undefined) this.FontColor = 'black'; if (this.Font == undefined) this.Font = 'Arial'; if (this.Bold == undefined) this.Bold = false; if (this.FontSize == undefined) this.FontSize = 12; if (this.Attribute == undefined) this.Attribute = '' ; if (this.IsPassword == undefined) this.IsPassword = false ; if (this.BorderCol == undefined) this.BorderColor = 'gray'; if (this.Rows == undefined) this.Rows = 0; var type = (this.IsPassword)?'password':'text'; var display =(this.Attribute == '')?'':'none'; var Bold = (this.FontBold)?'bold':''; var buffer; if (this.IsAttributeSupported("input", "placeholder")) { //soporta propiedad paceholder if (this.Rows == 0) { buffer = ''; }else { buffer = ''; } this.setHtml(buffer); }else{ //NO soporta propiedad paceholder //acorto al máximo de caracteres this.InnerText = this.InnerText.substring(0,this.Size); buffer = '
'+
' ' +
' ' +
'' +
' '+
'
';
if (this.Rows==0){
buffer = buffer +
'';}
else{
buffer = buffer +
'';
}
buffer = buffer +
' ' +
' |