Skip to content

Commit a91d239

Browse files
committed
Doc - format fix w/ line breaks in ui-model sample.
1 parent 72462dd commit a91d239

1 file changed

Lines changed: 28 additions & 19 deletions

File tree

README.md

Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -183,12 +183,14 @@ var uiModels_comics = {
183183
type: 'panel', label: 'Serie', width: 70,
184184
elements: [
185185
{
186-
id: 'title', attribute: 'title', type: 'text', label: 'Title', required: true,
186+
id: 'title', attribute: 'title', type: 'text',
187+
label: 'Title', required: true,
187188
maxLength: 255,
188189
width: 62, inMany: true
189190
},
190191
{
191-
id: 'genre', attribute: 'genre', type: 'lov', label: 'Genre', width: 38, inMany: true,
192+
id: 'genre', attribute: 'genre', type: 'lov',
193+
label: 'Genre', width: 38, inMany: true,
192194
list: [
193195
{id: 'adv', text: 'Adventure'},
194196
{id: 'conte', text: 'Fairy tale'},
@@ -206,38 +208,44 @@ var uiModels_comics = {
206208
]
207209
},
208210
{
209-
id: 'authors', attribute: 'authors', type: 'text', width: 62, inMany: true,
210-
label: 'Authors'
211+
id: 'authors', attribute: 'authors', type: 'text',
212+
label: 'Authors', width: 62, inMany: true
211213
},
212214
{
213-
id: 'language', attribute: 'language', type: 'lov', label: 'Language', width: 38, inMany: false,
215+
id: 'language', attribute: 'language', type: 'lov',
216+
label: 'Language', width: 38, inMany: false,
214217
list: [
215218
{id: 'FR', text: 'French'},
216219
{id: 'EN', text: 'English'}
217220
]
218221
},
219222
{
220-
id: 'serieNb', attribute: 'serieNb', type: 'integer', width: 15, inMany: false,
221-
label: 'Albums', inCharts:false
223+
id: 'serieNb', attribute: 'serieNb', type: 'integer',
224+
label: 'Albums', width: 15, inMany: false,
225+
inCharts: false
222226
},
223227
{
224-
id: 'haveNb', attribute: 'haveNb', type: 'integer', width: 15, inMany: false,
225-
label: 'Owned', inCharts:false
228+
id: 'haveNb', attribute: 'haveNb', type: 'integer',
229+
label: 'Owned', width: 15, inMany: false,
230+
inCharts:false
226231
},
227232
{
228-
id: 'have', attribute: 'have', type: 'text', width: 32, inMany: false,
229-
label: 'have'
233+
id: 'have', attribute: 'have', type: 'text',
234+
label: 'have', width: 32, inMany: false
230235
},
231236
{
232-
id: 'complete', attribute: 'complete', type: 'boolean', width: 19, inMany: true,
233-
label: 'Complete', labelFalse:'Incomplete', labelTrue:'Complete'
237+
id: 'complete', attribute: 'complete', type: 'boolean',
238+
label: 'Complete', width: 19, inMany: true,
239+
labelFalse:'Incomplete', labelTrue:'Complete'
234240
},
235241
{
236-
id: 'finished', attribute: 'finished', type: 'boolean', width: 19, inMany: true,
237-
label: 'Finished', labelTrue:'Finished', labelFalse:'Unfinished', css:'cBlue'
242+
id: 'finished', attribute: 'finished', type: 'boolean',
243+
label: 'Finished', width: 19, inMany: true,
244+
labelTrue:'Finished', labelFalse:'Unfinished', css:'cBlue'
238245
},
239246
{
240-
id:'amazon', label:'Amazon', type:'formula', width:100, css:'evol-ellipsis',
247+
id:'amazon', type:'formula',
248+
label:'Amazon', width:100, css:'evol-ellipsis',
241249
formula:function(m){
242250
var link=m.get('language')=='FR' ?
243251
'http://www.amazon.fr/s/ref=sr_nr_n_1?keywords='
@@ -247,7 +255,8 @@ var uiModels_comics = {
247255
}
248256
},
249257
{
250-
id: 'notes', attribute: 'notes', type: 'textmultiline', label: 'Notes', maxLength: 1000,
258+
id: 'notes', attribute: 'notes', type: 'textmultiline',
259+
label: 'Notes', maxLength: 1000,
251260
width: 100, height: 6, inMany: false
252261
}
253262
]
@@ -256,8 +265,8 @@ var uiModels_comics = {
256265
type: 'panel', label: 'Cover', width: 30,
257266
elements: [
258267
{
259-
id: 'pix', attribute: 'pix', type: 'image', width: 100, inMany: true,
260-
label: 'Cover'
268+
id: 'pix', attribute: 'pix', type: 'image',
269+
label: 'Cover', width: 100, inMany: true
261270
}
262271
]
263272
}

0 commit comments

Comments
 (0)