Skip to content

Commit e435da3

Browse files
committed
Add table-related tags to WCHtmlCanvas and implement corresponding tag classes
1 parent e9a1498 commit e435da3

6 files changed

Lines changed: 73 additions & 0 deletions

File tree

src/WildCampComponent/WCHtmlCanvas.class.st

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,3 +219,24 @@ WCHtmlCanvas >> unorderedList [
219219
WCHtmlCanvas >> numberInput [
220220
^ self brush: WCNumberInputTag new
221221
]
222+
223+
{ #category : 'tags-tables' }
224+
WCHtmlCanvas >> table [
225+
^ self brush: WCTableTag new
226+
]
227+
228+
WCHtmlCanvas >> tableBody [
229+
^ self brush: WCTableBodyTag new
230+
]
231+
232+
WCHtmlCanvas >> tableHead [
233+
^ self brush: WCTableHeadTag new
234+
]
235+
236+
WCHtmlCanvas >> tableColumn [
237+
^ self brush: WCTableColumnTag new
238+
]
239+
240+
WCHtmlCanvas >> tableRow [
241+
^ self brush: WCTableRowTag new
242+
]
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Class {
2+
#name : 'WCTableBodyTag',
3+
#superclass : 'WCTagBrush',
4+
#category : 'WildCampComponent'
5+
}
6+
7+
8+
{ #category : 'accessing' }
9+
WCTableBodyTag >> tag [
10+
^ 'tbody'
11+
]
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Class {
2+
#name : 'WCTableColumnTag',
3+
#superclass : 'WCTagBrush',
4+
#category : 'WildCampComponent'
5+
}
6+
7+
8+
{ #category : 'accessing' }
9+
WCTableColumnTag >> tag [
10+
^ 'td'
11+
]
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Class {
2+
#name : 'WCTableHeadTag',
3+
#superclass : 'WCTagBrush',
4+
#category : 'WildCampComponent'
5+
}
6+
7+
{ #category : 'accessing' }
8+
WCTableHeadTag >> tag [
9+
^ 'thead'
10+
]
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Class {
2+
#name : 'WCTableRowTag',
3+
#superclass : 'WCTagBrush',
4+
#category : 'WildCampComponent'
5+
}
6+
7+
{ #category : 'accessing' }
8+
WCTableHeadTag >> tag [
9+
^ 'tr'
10+
]
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Class {
2+
#name : 'WCTableTag',
3+
#superclass : 'WCTagBrush',
4+
#category : 'WildCampComponent'
5+
}
6+
7+
{ #category : 'accessing' }
8+
WCTableTag >> tag [
9+
^ 'table'
10+
]

0 commit comments

Comments
 (0)