3333< link rel ="import " href ="../paper-menu/paper-menu.html ">
3434< link rel ="import " href ="../paper-item/paper-item.html ">
3535
36- < link rel ="import " href ="shared-style.html ">
3736< link rel ="import " href ="layout-style.html ">
3837< link rel ="import " href ="codelab-style.html ">
3938< link rel ="import " href ="analytics-behavior.html ">
4443
4544Example:
4645
47- <google-codelab title="Awesome codelab" feedback-link="http://example.org">
46+ <google-codelab title="Awesome codelab" feedback-link="http://example.org"
47+ last-updated="2015-01-28">
4848 <google-codelab-step label="One" step="1" duration="10">
4949 ...
5050 </google-codelab-step>
5353 </google-codelab-step>
5454 </google-codelab>
5555
56+ The element can also be used in a minimalistic mode where less styling is
57+ applied. Use the `theme="minimal"` attribute and combine with the
58+ `noToolbar`, `noArrows`, and `noHighlight` properties to turn off the top nav and
59+ prevent syntax highlighting code blocks, respectively:
60+
61+ <google-codelab theme="minimal" no-toolbar no-arrows no-highlight>
62+
5663@demo demo/codelab.html
5764@demo demo/embed.html
5865-->
5966< dom-module id ="google-codelab ">
6067 < template strip-whitespace >
61- < style include ="shared-style "> </ style >
6268 < style include ="layout-style "> </ style >
6369 < style include ="codelab-style "> </ style >
6470
95101 </ div >
96102
97103 < paper-scroll-header-panel id ="headerpanel " fixed main >
98- < paper-toolbar hidden$ ="[[hideToolbar ]] ">
104+ < paper-toolbar hidden$ ="[[noToolbar ]] ">
99105 < template is ="dom-if " if ="{{_narrow}} " strip-whitespace >
100106 < paper-icon-button icon ="menu " paper-drawer-toggle > </ paper-icon-button >
101107 </ template >
@@ -119,7 +125,7 @@ <h1 class="title">{{title}}</h1>
119125
120126 </ paper-drawer-panel >
121127
122- < footer id ="controls ">
128+ < footer id ="controls " hidden$ =" [[noArrows]] " >
123129 < div class ="fabs layout horizontal justified ">
124130 < paper-fab raised class ="navbutton prevbutton " icon ="chevron-left "
125131 on-tap ="selectPrevious "
@@ -268,10 +274,26 @@ <h2>Would you like to resume where you left off?</h2>
268274 value : null
269275 } ,
270276
277+ /**
278+ * Hides the topnav toolbar.
279+ */
280+ noToolbar : {
281+ type : Boolean ,
282+ value : false
283+ } ,
284+
285+ /**
286+ * Hides the forward/background navigation arrows.
287+ */
288+ noArrows : {
289+ type : Boolean ,
290+ value : false
291+ } ,
292+
271293 /**
272294 * Property determines whether the toolbar is hidden.
273295 */
274- hideToolbar : {
296+ noHighlight : {
275297 type : Boolean ,
276298 value : false ,
277299 reflectToAttribute : true
0 commit comments