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 = '
'+ '
'+ '
' + '
' + '
'+ ''+this.InnerText+''+ '
'+ '
'+ '
'; if (this.Rows==0){ buffer = buffer + '';} else{ buffer = buffer + ''; } buffer = buffer + '
' + '
' + '
'; this.setHtml(buffer); if (this.Attribute != '') document.getElementById(this.ContainerName + '_mostrarOcultar' ).style.display ='none'; //Tabla document.getElementById(this.ContainerName+ '_tabla').style.width = document.getElementById(this.ContainerName+ '_texto').offsetWidth; document.getElementById(this.ContainerName+ '_tabla').style.height = document.getElementById(this.ContainerName+ '_texto').offsetHeight; //fondo document.getElementById(this.ContainerName+ '_fondo').style.width = document.getElementById(this.ContainerName+ '_texto').offsetWidth; document.getElementById(this.ContainerName+ '_fondo').style.height = document.getElementById(this.ContainerName+ '_texto').offsetHeight; //Mostrar Ocultar document.getElementById(this.ContainerName+ '_mostrarOcultar').style.width = document.getElementById(this.ContainerName+ '_texto').offsetWidth; document.getElementById(this.ContainerName+ '_mostrarOcultar').style.height = document.getElementById(this.ContainerName+ '_texto').offsetHeight; } ///UserCodeRegionEnd: (do not remove this comment.) } ///UserCodeRegionStart:[User Functions] (do not remove this comment.) this.IsAttributeSupported = function(tagName, attrName) { var val = false; // Create element var input = document.createElement(tagName); // Check if attribute (attrName) // attribute exists if (attrName in input) { val = true; } // Delete "input" variable to // clear up its resources delete input; // Return detected value return val; } ///UserCodeRegionEnd: (do not remove this comment.): }