Skip to content

Commit 86c1b9e

Browse files
committed
API - Renamed view "View" to "Browse".
1 parent f076fa2 commit 86c1b9e

23 files changed

Lines changed: 366 additions & 330 deletions

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,19 @@ Evolutility's views have a Backbone model (to define the data) and also a UI-mod
2929
All views for a Backbone model and collection share a single UI-Model which defines of all UI elements across views in a simple declarative way.
3030

3131
Evolutility provides 3 types of view
32-
* Views for a model: View, Edit, Mini (quick edit), JSON.
32+
* Views for a model: Browse, Edit, Mini (quick edit), JSON.
3333
* Views for a collection: List, Cards, Bubbles, Charts.
3434
* Views for actions on a model or collection: Export, Filter.
3535

3636
A large part of the API (methods, options and events) is common to all views. Some views have additional API.
3737

3838
## Views for One model
39-
### View
39+
### Browse
4040
Shows all fields for viewing (read only). Fields are grouped in panels and tabs.
4141

42-
![screenshot 1](https://raw.githubusercontent.com/evoluteur/evolutility/master/doc/screenshots/one-view.gif)
42+
![screenshot 1](https://raw.githubusercontent.com/evoluteur/evolutility/master/doc/screenshots/one-browse.gif)
4343
```javascript
44-
var vw = new Evol.ViewOne.View({
44+
var vw = new Evol.ViewOne.Browse({
4545
el: myElement,
4646
uiModel: myUIModel,
4747
model: myModel

demo/demo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
var uidef=null;
1313

1414
var ViewDescriptions = {
15-
'view': {name: 'View', desc: 'The "View" view shows all fields for viewing (read only). Fields are grouped in panels and tabs.'},
15+
'browse': {name: 'Browse', desc: 'This view shows all fields for viewing (in read only mode). Fields are grouped in panels and tabs.'},
1616
'edit': {name: 'Edit', desc: 'The "Edit" view shows all fields for edition to create or update models. It automatically performs validation based on the UI-model and supports the Master-Details pattern (nested collections). Fields are grouped in panels and tabs.'},
1717
'mini': {name: 'Mini (quick-edit)', desc: 'The "Mini" (quick-edit) view only shows important fields (required or showing as a column in grids). Fields are grouped in a single panel.'},
1818
'json': {name: 'JSON', desc: 'The "JSON" view shows the JSON representation of the data.'},

dist/css/evolutility.css

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,6 @@
1212
margin-bottom: 10px;
1313
padding: 3px;
1414
background-color: #fbfbfb;
15-
/*
16-
.evo-search{
17-
width:200px;
18-
padding: 3px 4px 2px 2px;
19-
>.btn{
20-
position: relative;
21-
top:0;
22-
}
23-
}*/
2415
}
2516
.evo-toolbar > [data-cid="views"] {
2617
color: black;
@@ -45,18 +36,26 @@
4536
.evo-toolbar .evo-dropdown-icons {
4637
min-width: 50px;
4738
}
48-
.evo-toolbar .evo-tb-status {
39+
.evo-filter-on {
40+
background-color: #e0f2f1;
41+
}
42+
.evo-view-on {
43+
color: #428bca;
44+
}
45+
.evo-tb-status {
4946
color: #0f0f0f !important;
5047
min-height: 35px;
5148
line-height: 35px;
5249
margin-top: 2px;
5350
margin-right: 5px;
5451
}
55-
.evo-toolbar .evo-filter-on {
56-
background-color: #e0f2f1;
52+
.evo-search {
53+
width: 200px;
54+
padding: 3px 4px 2px 2px;
5755
}
58-
.evo-toolbar .evo-view-on {
59-
color: #428bca;
56+
.evo-search > .btn {
57+
position: relative;
58+
top: 0;
6059
}
6160
/* --- panels & tabs --- */
6261
.evol-pnl > div > fieldset {
@@ -166,7 +165,7 @@ label {
166165
width: 100%;
167166
}
168167
.evo-one-edit,
169-
.evo-one-view,
168+
.evo-one-browse,
170169
.evo-one-wiz {
171170
margin-left: -10px;
172171
}

dist/css/evolutility.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)