File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -75,22 +75,25 @@ async function with_bulma(){
7575 ${ bulma }
7676
7777 < div class ="tags has-addons is-centered " style ="margin-bottom:0rem ">
78- < span ${ "#-status" } class ="tag is-warning " onclick ="this.root.toggle.bind(this.root) "> Pending</ span >
78+ < span ${ "#-status" } class ="tag is-warning " onclick ="this.root.toggle.bind(this.root)() "> Pending</ span >
7979 < span ${ "#-text" } class ="tag is-info "> Todo text</ span >
8080 < a class ="tag is-delete is-light "> </ a >
8181 </ div >
82- ${ "|*index|isDone |text*|" }
82+ ${ "|*index|isDonne |text*|" }
8383 ` ;
8484
8585 dfn ( "my-todo" , class extends mxn_todo ( HTMLElement ) {
86- on_text_change ( val ) {
86+ update_text ( val ) {
8787 this . ids . text . innerText = val ;
8888 }
89- on_isDone_change ( val ) {
90- this . ids . innerText = ( val === "true" ) ? "Done" : "Pending" ;
89+ update_isDonne ( val ) {
90+ console . log ( "doing" )
91+ //this.ids.status.innerText = (val === "true") ? "Done" : "Pending";
9192 }
9293 toggle ( ) {
93- this . applyTransition ( "toggleTodo" , this . index ) ;
94+ //this.applyTransition("toggleTodo",this.index);
95+ console . log ( "done " , this . isDonne ) ;
96+ this . isDon = "true" ;
9497 }
9598 } ) ;
9699}
You can’t perform that action at this time.
0 commit comments