Add icon to icon bar/ Expose icon bar on js ?

55 views
Skip to first unread message

Nguyen Do Le Bao

unread,
Aug 15, 2014, 6:00:21 AM8/15/14
to erpnext-dev...@googlegroups.com
Is there any way to add a new icon button on icon_bar ?
For toolbar, there is frappe.ui.toolbar.add_dropdown_button.
For Actions, there is cur_frm.add_custom_button

But there is nothing for icon bar ? I need to add some button with multiple selection on List. 
So iconbar button is the most suitable. 

Thanks! 

Rushabh Mehta

unread,
Aug 15, 2014, 12:50:14 PM8/15/14
to erpnext-dev...@googlegroups.com
On 15-Aug-2014, at 3:30 pm, Nguyen Do Le Bao <natha...@gmail.com> wrote:

Is there any way to add a new icon button on icon_bar ?
For toolbar, there is frappe.ui.toolbar.add_dropdown_button.
For Actions, there is cur_frm.add_custom_button

cur_frm.appframe.add_button

sorry the api is not too clean here, because we have been moving things around too much :)

But there is nothing for icon bar ? I need to add some button with multiple selection on List. 
So iconbar button is the most suitable. 

Thanks! 

--
Note:
 
If you are posting an issue,
 
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
4. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
 
End of Note
---
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/1a613665-b515-4489-8eed-8b1b0218857c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nguyen Do Le Bao

unread,
Aug 17, 2014, 10:13:27 PM8/17/14
to erpnext-dev...@googlegroups.com
Okay, thanks. How's about the icon bar in the list ? Is there a function for it as well ?

On Saturday, August 16, 2014 12:50:14 AM UTC+8, rushabh wrote:
On 15-Aug-2014, at 3:30 pm, Nguyen Do Le Bao <natha...@gmail.com> wrote:

Is there any way to add a new icon button on icon_bar ?
For toolbar, there is frappe.ui.toolbar.add_dropdown_button.
For Actions, there is cur_frm.add_custom_button

cur_frm.appframe.add_button

sorry the api is not too clean here, because we have been moving things around too much :)

But there is nothing for icon bar ? I need to add some button with multiple selection on List. 
So iconbar button is the most suitable. 

Thanks! 

--
Note:
 
If you are posting an issue,
 
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
4. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
 
End of Note
---
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+unsub...@googlegroups.com.

Anand Doshi

unread,
Aug 18, 2014, 2:23:19 AM8/18/14
to ERPNext Developer's Forum

Nguyen Do Le Bao

unread,
Aug 18, 2014, 3:12:53 AM8/18/14
to erpnext-dev...@googlegroups.com
Cool, got it, thanks for pointing out the example :D
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+unsubscr...@googlegroups.com.

--
Note:
 
If you are posting an issue,
 
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
4. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
 
End of Note
---
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages