forked from altsoft/platypusjs-widgets-api-prototype
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from TrefilovaNS/master
test
- Loading branch information
Showing
28 changed files
with
10,941 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/** | ||
* | ||
* @author ромашка | ||
*/ | ||
define('Button', ['orm', 'forms', 'ui'], function (Orm, Forms, Ui, ModuleName) { | ||
function module_constructor() { | ||
var self = this | ||
, model = Orm.loadModel(ModuleName) | ||
, form = Forms.loadForm(ModuleName, model); | ||
|
||
self.show = function () { | ||
form.show(); | ||
}; | ||
|
||
self.showOn = function (aPanel) { | ||
aPanel.add(form.view); | ||
}; | ||
|
||
// TODO : place your code here | ||
|
||
|
||
model.requery(function () { | ||
// TODO : place your code here | ||
}); | ||
form.htmlArea.element.innerHTML = '<button class="btn btn-primary" href="#">Основная</button>'; | ||
} | ||
return module_constructor; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><layout title="" view="view"> | ||
<AnchorsPane background="#ffffff" cursor="0" name="view" prefHeight="106px" prefWidth="400px"/> | ||
<HtmlArea name="htmlArea" parent="view" prefHeight="80px" prefWidth="320px" text="htmlArea"> | ||
<AnchorsPaneConstraints height="80px" left="40px" top="10px" width="320px"/> | ||
</HtmlArea> | ||
</layout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<datamodel> | ||
</datamodel> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.