2017 © Pedro Peláez
 

library webui

Web UI Components Library

image

corneltek/webui

Web UI Components Library

  • Wednesday, May 4, 2016
  • by c9s
  • Repository
  • 3 Watchers
  • 19 Stars
  • 276 Installations
  • PHP
  • 8 Dependents
  • 0 Suggesters
  • 1 Forks
  • 14 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

WebUI

WebUI aims to provide a PHP interface to build HTML components with microdata., (*1)

Synopsis

$el = new Element('span');
$el->append('>');
$el->addClass('separator');

$breadcrumbs = new Breadcrumbs;

$breadcrumbs->setSeparatorElement($el);

$breadcrumbs->appendLink('Home', '/', 'The Home Page');
$breadcrumbs->appendLink('Product', '/', 'All Products');
$html = $breadcrumbs->render();

And we will get:, (*2)

<div class="breadcrumbs">
  <span itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
    <a title="The Home Page" itemprop="url" href="/">
      <span itemprop="title">Home</span>
    </a>
  </span>
  <span class="separator">&#62;</span>
  <span itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
    <a title="All Products" itemprop="url" href="/">
      <span itemprop="title">Product</span>
    </a>
  </span>
</div>

Components

ReactComponent

Rendering ReactComponent initializer from PHP settings:, (*3)

$component = new ReactComponent('CRUDListApp', array( 'prop1' => 'setting' ));
$out = $component->render();

The code above renders the html below:, (*4)

<div class="react-component react-app" id="CRUDListApp56faad9210df6"></div>
<script>
document.addEventListener('load', function(evt) {
var app56faad9210e79 = React.createElement(CRUDListApp,{
    "prop1": "setting"
});
React.render(app56faad9210e79, document.getElementById('CRUDListApp56faad9210df6'));
});
</script>

The Versions

04/05 2016

dev-master

9999999-dev

Web UI Components Library

  Sources   Download

MIT

The Development Requires

by Avatar c9s

04/05 2016

1.4.0

1.4.0.0

Web UI Components Library

  Sources   Download

MIT

The Development Requires

by Avatar c9s

04/05 2016

2.0.0

2.0.0.0

Web UI Components Library

  Sources   Download

MIT

The Development Requires

by Avatar c9s

29/03 2016

1.3.0

1.3.0.0

Web UI Components Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar c9s

11/03 2016

1.2.0

1.2.0.0

Web UI Components Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar c9s

29/12 2014

1.1.0

1.1.0.0

Web UI Components Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar c9s