Skip to content

Commit bd82b94

Browse files
committed
fix html
1 parent 3eb1d73 commit bd82b94

File tree

1 file changed

+30
-29
lines changed

1 file changed

+30
-29
lines changed

frameworks/keyed/fntags/src/Main.js

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -63,35 +63,36 @@ document.body.append(
6363
)
6464
)
6565
)
66-
)
67-
),
68-
h( 'table', { class: 'table table-hover table-striped test-data' },
69-
data.bindValues( h( 'tbody' ), ( item ) =>
70-
h( 'tr', {
71-
id: item().id,
72-
onclick: () => data.select( item().id ),
73-
onselect: ( e ) => e.target.className = 'danger',
74-
ondeselect: ( e ) => e.target.className = ''
75-
},
76-
h( 'td', {
77-
class: 'col-md-1'
78-
},
79-
item().id
80-
),
81-
h( 'td', { class: 'col-md-4' }, item.bindAs( () => item().label ) ),
82-
h( 'td', { class: 'col-md-1' },
83-
h( 'a',
84-
h( 'span', {
85-
onclick: ( e ) => {
86-
e.stopPropagation()
87-
data( data().filter( d => d().id !== item().id ) )
88-
},
89-
class: 'glyphicon glyphicon-remove', 'aria-hidden': 'true'
90-
} )
91-
)
92-
),
93-
h( 'td', { class: 'col-md-6' } )
94-
) )
66+
),
67+
h( 'table', { class: 'table table-hover table-striped test-data' },
68+
data.bindValues( h( 'tbody' ), ( item ) =>
69+
h( 'tr', {
70+
id: item().id,
71+
onclick: () => data.select( item().id ),
72+
onselect: ( e ) => e.target.className = 'danger',
73+
ondeselect: ( e ) => e.target.className = ''
74+
},
75+
h( 'td', {
76+
class: 'col-md-1'
77+
},
78+
item().id
79+
),
80+
h( 'td', { class: 'col-md-4' },
81+
h('a', { class: 'lbl'}, item.bindAs( () => item().label ) )),
82+
h( 'td', { class: 'col-md-1' },
83+
h( 'a',
84+
h( 'span', {
85+
onclick: ( e ) => {
86+
e.stopPropagation()
87+
data( data().filter( d => d().id !== item().id ) )
88+
},
89+
class: 'glyphicon glyphicon-remove', 'aria-hidden': 'true'
90+
} )
91+
)
92+
),
93+
h( 'td', { class: 'col-md-6' } )
94+
) )
95+
),
9596
),
9697
h( 'span', { class: 'preloadicon glyphicon glyphicon-remove', 'aria-hidden': 'true' } )
9798
)

0 commit comments

Comments
 (0)