Mastering universal theme

44
Copyright © 2015 APEX Consulting Mastering the APEX Universal Theme Roel Hartman

Transcript of Mastering universal theme

Page 1: Mastering universal theme

Copyright © 2015 APEX Consulting

Mastering the APEX Universal Theme

Roel Hartman

Page 2: Mastering universal theme

2

Page 3: Mastering universal theme
Page 4: Mastering universal theme
Page 5: Mastering universal theme
Page 6: Mastering universal theme

Copyright © 2015 APEX Consulting

Themes

Page 7: Mastering universal theme

Copyright © 2015 APEX Consulting

What are Themes?

Page 8: Mastering universal theme

Copyright © 2015 APEX Consulting

What was wrong with the old Themes?TemplatesTable BasedCSS tuning

Page 9: Mastering universal theme

Copyright © 2015 APEX Consulting

The answer of the APEX Dev Team:

42

Page 10: Mastering universal theme
Page 11: Mastering universal theme

Copyright © 2015 APEX Consulting

Managing TemplatesLess is more …

Page 12: Mastering universal theme

Managing Templates

• Just a few templates per type

• Fine tune using Template Options

Page 13: Mastering universal theme

Managing Templates Options

• Declarative

• One click magic

• No additional template

• No CSS

Page 14: Mastering universal theme

Managing Templates Options

• And you can create your own!

• Example: Set an item to uppercase / lowercase

Page 15: Mastering universal theme

DEMONSTRATION

Copyright © 2015 APEX Consulting

Create a Template Option Group

Page 16: Mastering universal theme
Page 17: Mastering universal theme

DEMONSTRATION

Copyright © 2015 APEX Consulting

Create Template Options

Page 18: Mastering universal theme
Page 19: Mastering universal theme

DEMONSTRATION

Copyright © 2015 APEX Consulting

Use Template Options

Page 20: Mastering universal theme
Page 21: Mastering universal theme

DEMONSTRATION

Copyright © 2015 APEX Consulting

Running the Page

Page 22: Mastering universal theme
Page 23: Mastering universal theme

Make It Work.Ukoug--Uppercase input { text-transform: uppercase }

• Now it can be used by all other developers without knowing any CSS

Note: This CSS won’t change the actual value !!!

Page 24: Mastering universal theme

Copyright © 2015 APEX Consulting

What was wrong with the old Themes?TemplatesTable BasedCSS tuning

Page 25: Mastering universal theme

Grids

• Fluid

• Nested

• Regions, Items and Labels

Page 26: Mastering universal theme

Fluid?

• adaptive

• pixel based

• use different pixel sizes for different screen sizes

• fluid

• maximum size fixed

• columns based on percentages

Page 27: Mastering universal theme

Fluid?<div class="container">

<div class="row">

<div class="col col-7”>

#CONTENT#

</div>

<div class="col col-5”>

#CONTENT#

</div>

</div>

</div>

Page 28: Mastering universal theme

Grid != Responsive

• reducing screen size > reduce columns widths

• so you need more …

Page 29: Mastering universal theme

Responsive Grid

• media queries - just one major breakpoint defined@media (max-width:640px){

.col-1,.col-10,.col-11,.col-12,

.col-2,.col-3,.col-4,.col-5,

.col-6,.col-7,.col-8,.col-9

{

width:100%;

}

}

Page 30: Mastering universal theme

Regions, Items And Labels

• Column 8 = start on 8th

• Column Span 3 = “.col-3”

Page 31: Mastering universal theme

Regions, Items And Labels

• Label Column Span

Page 32: Mastering universal theme

Responsive. Fluid. Grid.

Page 33: Mastering universal theme

Copyright © 2015 APEX Consulting

What was wrong with the old Themes?TemplatesTable BasedCSS tuning

Page 34: Mastering universal theme

DEMONSTRATION

Copyright © 2015 APEX Consulting

Theme Roller

Page 35: Mastering universal theme
Page 36: Mastering universal theme

DEMONSTRATION

Copyright © 2015 APEX Consulting

Theme Roller - Theme Styles

Page 37: Mastering universal theme
Page 38: Mastering universal theme

DEMONSTRATION

Copyright © 2015 APEX Consulting

Theme Roller - Copy Theme Styles

Page 39: Mastering universal theme
Page 40: Mastering universal theme

Copyright © 2015 APEX Consulting

What was wrong with the old Themes?TemplatesTable BasedCSS tuning

Page 41: Mastering universal theme

downside is, you need a lot of templates for each and every building block: one for a region with a border and one for a region without a border; one for a report with a header and one for a report without one. So you end up with an impressive number of templates, and making general changes, e.g. a change that applies to all region templates, is a lot of work. So that should be made simpler.

Mastering theIn the spring of this year the long awaited version 5.0 of Oracle Application Express (APEX) was released. This version was not just another update, but a major overhaul with two goals: increase developer productivity and create better-looking applications on every device.Roel Hartman, Director & Senior APEX Developer, APEX Consulting

APEX Universal Theme

Although APEX was already well known for its speed of development, the developer still needed to click around quite a lot when making changes to his application. That’s totally changed with the appearance of the “Page Designer”. In one view you can see all the details of your page, a graphical representation of what your page looks like and the properties of the current selected item (see figure 1). Just like in good old Oracle Forms you can select multiple items at once and make changes to common attributes with just one click.

Next to Page Designer there are dozens of other new features that makes APEX one of the most productive, if not the most productive, Oracle development environments.

The Issues With The Old TemplatesThe second goal of APEX 5.0 was to make it easier to create good-looking applications on every device. In APEX, templates define the look of an application. There are templates for every type of building block, like pages, regions, buttons etc and a set of templates is grouped into a theme. So you’ll get a uniform look across your application when you’ve picked a theme. The

www.ukoug.org 17

APEX & Database Development

FIGURE 1: PAGE DESIGNER

See the latest issue of Oracle Scene

Sign up for our training (tomorrow !!). Special price: GBP xxx

Page 43: Mastering universal theme

Copyright © 2015 APEX Consulting

Q & A [email protected]

http://www.apexconsulting.nl

Page 44: Mastering universal theme

[email protected]://www.apexconsulting.nl

Copyright © 2015 APEX Consulting