Welcome, Guest
Username: Password: Remember me

TOPIC: Styling the toolbar?

Styling the toolbar? 23 Dec 2016 00:43 #14868

  • jonathanbell
  • jonathanbell's Avatar
  • Offline
  • Premium Member
  • Posts: 147
  • Thank you received: 5
  • Karma: 1
Where if anywhere could I set the style of the toolbar, rather than it be determined by the Joomla template?
The administrator has disabled public write access.

Styling the toolbar? 17 Mar 2019 00:03 #15681

  • Nicolas
  • Nicolas's Avatar
  • Offline
  • Premium Member
  • Posts: 82
  • Thank you received: 12
  • Karma: 6
Hello.
I know that this subject is very old now, but if you still need it...
you can create your own toolbar and add the class you want on the buttons. a bit like this :
<div class="btn-toolbar">
				<div class="btn-group">
				<button type="button" class="btn btn" onclick="return Joomla.submitform('TASK.cancel');">
					<span class="icon-cancel"></span><?php echo JText::_('COMPONENT_JTOOLBAR_CANCEL') ?>
				</button>
					</div>
					<div class="btn-group">
					<button type="button" class="btn btn-success" id="buttonSave" onclick="Joomla.submitbutton('TASK.save')">
						<?php echo JText::_('COMPONENT_JTOOLBAR_SAVE') ?> <i class="icon-arrow-right"></i>
					</button>
				</div>
			</div>
The administrator has disabled public write access.
The following user(s) said Thank You: jonathanbell

Styling the toolbar? 16 Aug 2021 04:16 #15858

  • jonathanbell
  • jonathanbell's Avatar
  • Offline
  • Premium Member
  • Posts: 147
  • Thank you received: 5
  • Karma: 1
Hi Nicolas, are you able to help with what would the other task options be? save / save and close / save and new / cancel.

cheers
The administrator has disabled public write access.

Styling the toolbar? 08 Nov 2021 08:53 #15880

  • Nicolas
  • Nicolas's Avatar
  • Offline
  • Premium Member
  • Posts: 82
  • Thank you received: 12
  • Karma: 6
dear jonathan
sorry for my response time. Lots of work and no time here
You can do this with any of these:
Cancel : TASK.cancel
Save : TASK.apply
save & close : TASK.save
new : TASK.add

you can even create custom tasks
The administrator has disabled public write access.
Time to create page: 0.111 seconds

Get Started