Log - AppDaddy-Software-Solutions-Inc/framework-markup-language GitHub Wiki

<LOG/> : DataSource

The <LOG/> widget manages the system and session logs.

Attributes

Name Type Default Description Req
id string The id of the widget used for databinding.
value int The value of the variable, can be an eval that returns a value.
onchange string A string of events that will execute AFTER the value has changed.
global bool false Sets if the var is accessible across all templates.

Methods

Name Description
export ( $${\color{blue}string}$$ format = 'html', $${\color{blue}bool}$$ history = false ) Exports the log to the specified format. Formats include
  • html
  • excel
  • clear ( ) Clears the log.
    write ( $${\color{blue}string}$$ message ) Writes the message to the log.

    Examples

    Example #1 - Simple example demonstrating all 3 log methods
    <LOG id="log"/>
    
    <BOX border="all" bordercolor="red" borderradius="15" expand="false" pad="10" center="true">
    <TEXT size="20" label="System Log"/>
    <RADIO id="format2" layout="row" value="html">
      <OPTION value="html"  label="HTML"/>
      <OPTION value="csv" label="EXCEL"/>
    </RADIO>
    <ROW center="true" expand="false">
    
      <BUTTON type="outlined" onclick="log.export('{format2}',false)" pad="20" width="150">
    	<ICON icon="download" size="24"/>
    	<TEXT size="14" label="Session Log"/>
      </BUTTON>
    
      <BUTTON type="outlined" onclick="log.export('{format2}',true)" center="true" width="150">
    	<ICON icon="download" size="24"/>
    	<TEXT size="14" label="Full Log"/>
      </BUTTON>
    
      <BUTTON type="outlined" onclick="log.clear()" center="true" width="150">
    	<ICON icon="delete" size="24"/>
    	<TEXT size="14" label="Clear Log"/>
      </BUTTON>
    </ROW>
    </BOX>

    logo See it in Action

    Other Widgets You May Find Useful:

    ⚠️ **GitHub.com Fallback** ⚠️