att
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
application.type=widget
|
||||
application.code=helloWidget
|
||||
application.title=Hello Widget
|
||||
application.description=Primeira Widget
|
||||
application.fluig.version=null
|
||||
application.category=SYSTEM
|
||||
application.renderer=freemarker
|
||||
developer.code=G-ALES1NT-TEC09
|
||||
developer.name=andrey.cunha
|
||||
developer.url=http://www.fluig.com
|
||||
application.uiwidget=true
|
||||
application.mobileapp=false
|
||||
application.version=${build.version}-${build.revision}
|
||||
view.file=view.ftl
|
||||
edit.file=edit.ftl
|
||||
locale.file.base.name=helloWidget
|
||||
application.resource.js.1=/resources/js/helloWidget.js
|
||||
application.resource.css.2=/resources/css/helloWidget.css
|
||||
hash=4a16315e9e66fa7d797b3f6b1fb365b69f9a4ce2
|
||||
application.resource.js.3=/resources/js/jsCustom.js
|
||||
application.icon = dev.png
|
||||
@@ -0,0 +1,15 @@
|
||||
<div id="MyWidget_${instanceId}" class="super-widget wcm-widget-class fluig-style-guide" data-params="MyWidget.instance()">
|
||||
<h2>Estou no arquivo edit.ftl</h2>
|
||||
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">
|
||||
<i class="flaticon flaticon-build icon-lg" aria-hidden="true"></i> Configurações da Widget Hello Widget
|
||||
</h3>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
.... configurações que ainda vamos criar
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
|
||||
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
|
||||
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
|
||||
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
<div id="MyWidget_${instanceId}" class="super-widget wcm-widget-class fluig-style-guide" data-params="MyWidget.instance()">
|
||||
<h2>Estou no arquivo view.ftl</h2>
|
||||
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">Hello Widget</h3>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<button type="button" class="btn btn-primary" data-chamarEvento1>Botão 1</button>
|
||||
<button type="button" class="btn btn-success" data-chamarEvento2>Botão 2</button>
|
||||
<button type="button" class="btn btn-info" data-chamarEvento3>Botão 3</button>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Email address</label>
|
||||
<input type="email" class="form-control" id="exampleInputEmail1_${instanceId}" placeholder="Enter email">
|
||||
</div>
|
||||
|
||||
<button type="button" class="btn btn-info" data-chamarEvento4>Botão 4</button>
|
||||
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<p>Olá ${pageRender.getUser().fullName}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<jboss-web>
|
||||
<context-root>/helloWidget</context-root>
|
||||
<disable-cross-context>false</disable-cross-context>
|
||||
</jboss-web>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
|
||||
version="3.0">
|
||||
<session-config>
|
||||
<session-timeout>
|
||||
30
|
||||
</session-timeout>
|
||||
</session-config>
|
||||
</web-app>
|
||||
+1
@@ -0,0 +1 @@
|
||||
/* Coloque aqui seu codigo CSS */
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.1 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 7.7 KiB |
+23
@@ -0,0 +1,23 @@
|
||||
var FiltroDash = SuperWidget.extend({
|
||||
|
||||
init: function(){},
|
||||
|
||||
bindings: {
|
||||
local: {
|
||||
'filtrar': ['click_filtrar']
|
||||
}
|
||||
},
|
||||
|
||||
filtrar: function(){
|
||||
|
||||
var filtros = {
|
||||
inicio: $("#dtInicio_"+this.instanceId).val(),
|
||||
fim: $("#dtFim_"+this.instanceId).val(),
|
||||
filial: $("#filial_"+this.instanceId).val()
|
||||
};
|
||||
|
||||
window.dispatchEvent(
|
||||
new CustomEvent("dashboardFiltro", {detail: filtros})
|
||||
);
|
||||
|
||||
}
|
||||
Binary file not shown.
Reference in New Issue
Block a user