First commit
This commit is contained in:
49
application/demo/page/news.page.edit.button.js
Normal file
49
application/demo/page/news.page.edit.button.js
Normal file
@@ -0,0 +1,49 @@
|
||||
|
||||
import button from "/elements/button.js";
|
||||
|
||||
export default class backButton extends button{
|
||||
|
||||
text = "Edit News"
|
||||
|
||||
color = "white"
|
||||
|
||||
fontWeight = "bold"
|
||||
|
||||
cursor = "pointer";
|
||||
|
||||
float = "right"
|
||||
|
||||
propegateEvent = false
|
||||
|
||||
transition = "2s";
|
||||
|
||||
margin = 10;
|
||||
|
||||
marginLeft = 20;
|
||||
|
||||
fontFamily = "unset"
|
||||
|
||||
|
||||
|
||||
click() {
|
||||
|
||||
this.stateMachine.composeState( "Edit" );
|
||||
|
||||
var rightSide = this.parents("newsPages");
|
||||
|
||||
//this.parent.hide();
|
||||
|
||||
var newsEdit = rightSide.newsEdit;
|
||||
|
||||
newsEdit.id = this.parent.id;
|
||||
|
||||
newsEdit.sync();
|
||||
|
||||
newsEdit.show();
|
||||
|
||||
//rightSide.newsPage.transform = "translateX(-1200px)";
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user