Supporting FilesThe main update mentioned in the new features list is the ability to associate your CSS files within your template definition.
Themes can now store all the files of a theme with the theme definition in the database.This replicates functionality we already see in plug-ins.
|Theme Property - File Location|
New ThemesAs versions of APEX go up, the number of new themes go down - this is a good thing. APEX 5 introduces one new desktop theme that is responsive and utilises a "navigation list" - this is their fancy term for a List Template (my favourite) that builds a menu that looks & behaves pretty much like the one in the application builder.
|APEX 5 EA Desktop Themes|
When nominating a page template in the new theme you'll see a very succinct list of options. Well done APEX team.
|Theme 31 Page Templates|
TemplatesWhile editing page templates you'll notice the syntax highlighter is making the content easier to read.
|Syntax highlighting in page template property|
Converting Tab to Navigation ListI think I've had this as a blog post idea for a while, so here's a quick & dirty go using the new tech.
- Change the theme of your sample application to 31 - you need the navigation list template
I think all the template classes match ok without help.
- Create a List in Shared Components using something like the following SQL
select 1, tab_label
where application_id = :APP_ID
- Brave the new page designer and add a new List region using the following properties
(if only the OTN forums had an easy way to display a screenshot like this, now properties are tightly laid out)
|List region properties|
|Tab options rendered as List template|
I think many people have waited for such a tidy list template to be built-in instead of relying on plug-ins or stitching together your own solution - here it is.
David Peake says the new theme consolidates the best bits of all the old ones, so I look forward to seeing how it treats us.