Starting customized buttons.
This commit is contained in:
parent
5a685a7fca
commit
9af476f6ab
@ -153,7 +153,7 @@ LePage >> metadataInit [
|
||||
{ #category : #'*MiniDocs' }
|
||||
LePage >> navTop [
|
||||
| topNavFile |
|
||||
topNavFile := ((self optionAt: 'storage') / '_navtop.html').
|
||||
topNavFile := ((self optionAt: 'storage' ifAbsentPut: [ FileLocator temp ]) / '_navtop.html').
|
||||
topNavFile exists
|
||||
ifFalse: [ ^ '' ]
|
||||
ifTrue: [ ^ topNavFile contents ]
|
||||
|
14
src/MiniDocs/LePageHeaderBuilder.extension.st
Normal file
14
src/MiniDocs/LePageHeaderBuilder.extension.st
Normal file
@ -0,0 +1,14 @@
|
||||
Extension { #name : #LePageHeaderBuilder }
|
||||
|
||||
{ #category : #'*MiniDocs' }
|
||||
LePageHeaderBuilder >> addExportPageButton [
|
||||
<leHeaderAction>
|
||||
| newButton |
|
||||
|
||||
newButton := BrButton new
|
||||
aptitude: BrGlamorousButtonWithIconAptitude;
|
||||
label: 'Export Page';
|
||||
icon: BrGlamorousVectorIcons down;
|
||||
action: [ :aButton | Clipboard clipboardText: self page asMarkdeepFile ].
|
||||
self toolbarElement addItem: newButton.
|
||||
]
|
Loading…
Reference in New Issue
Block a user