Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

...

HTML
<script type="text/javascript">
Totvs = {
	CollapsiblePanel: function(optCollapsiblePanel){
		this.Id = "CollapsiblePanel1";
		this.ElementToAttach = window.body;
		this.TitleMark = "<titlemark>";

		if(optCollapsiblePanel != null && optCollapsiblePanel != undefined){
			this.Id = optCollapsiblePanel.Id;
			this.ElementToAttach = optCollapsiblePanel.ElementToAttach;
			
			var jElementCollapsiblePanel = $('div');
			jElementCollapsiblePanel.attr("id", this.Id + "_OuterDiv");
			jElementCollapsiblePanel.attr("name", this.Id + "_OuterDiv");
			jElementCollapsiblePanel.addClass("outerDiv");


			var jElementCollapsiblePanelWrapper = $('div');
			jElementCollapsiblePanelWrapper.attr("id", this.Id + "_OuterDivWrapper");
			jElementCollapsiblePanelWrapper.attr("name", this.Id + "_OuterDivWrapper");
			jElementCollapsiblePanelWrapper.addClass("outerDivWrapper");


			jElementCollapsiblePanel.append(jElementCollapsiblePanelWrapper);


			if(typeof this.ElementToAttach === "string")
				this.ElementToAttach = $(this.ElementToAttach)[0];
			
			//$(this.ElementToAttach).append(jElementCollapsiblePanel);
		}
	},

	CollapsiblePanelGroup: function(optCollapsiblePanelGroup){

	},

	CollapsiblePanelGroupItem: function(optCollapsiblePanelGroupItem){

	}
}
</script>


<titlemark>Título</titlemark>

...