Custom CSS for buttons - v7

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
weblike
Posts: 1165
Joined: Sun Dec 02, 2012 12:00 pm
Location: Europe

Custom CSS for buttons - v7

Post by weblike »

Hi all,

I try to get all the benefit of bootstrap everywhere I can now with v7.
Does anyone used custom bootstrap classes for buttons?

If use a custom bootstrap class in button I get a button inside button.
Image

@ Support: It would be nice to have the ability to define separately CSS style for buttons, too...

Thank you.
Thx,
George
________________________________
Developer Edition
AwareIM: v8.5, build 2824
OS: Windows Server 2012
DB: MySql 5.6.42
customaware
Posts: 2401
Joined: Mon Jul 02, 2012 12:24 am
Location: Ulaanbaatar, Mongolia

Re: Custom CSS for buttons - v7

Post by customaware »

George,

If you add this to your included CSS file then it will give you control
over that outside button when used in a query operation row.

You may have to override other classes for normal buttons but you should
get the idea....

.k-button.aw-link{
border-style: hidden;
padding: 0,0,0,0;
margin: 0,0,0,0;
background-color: white !important;
border-radius: none !important;

}
.k-button:hover,.aw-link:hover{
padding: 0,0,0,0;
margin: 0,0,0,0;
background-color: #EDF2F4 !important;
border-radius: none !important;
}
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Image
weblike
Posts: 1165
Joined: Sun Dec 02, 2012 12:00 pm
Location: Europe

Re: Custom CSS for buttons - v7

Post by weblike »

Thx Mark for info,

but is it enough to place my custom css in /Custom/CSS/appname folder or do we have to change the template files?

cheers,
Thx,
George
________________________________
Developer Edition
AwareIM: v8.5, build 2824
OS: Windows Server 2012
DB: MySql 5.6.42
customaware
Posts: 2401
Joined: Mon Jul 02, 2012 12:24 am
Location: Ulaanbaatar, Mongolia

Re: Custom CSS for buttons - v7

Post by customaware »

I just add mine to Custom/CSS/
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Image
weblike
Posts: 1165
Joined: Sun Dec 02, 2012 12:00 pm
Location: Europe

Re: Custom CSS for buttons - v7

Post by weblike »

Perfect.
A look forward for a detailed documentation of this new version. :)
thx a lot,
Thx,
George
________________________________
Developer Edition
AwareIM: v8.5, build 2824
OS: Windows Server 2012
DB: MySql 5.6.42
aware_support
Posts: 7525
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Re: Custom CSS for buttons - v7

Post by aware_support »

There is a workaround for this. If you want to change buttons appearance in a form, use the "render" script for the form. The script can use jQuery to find buttons inside a form and add CSS class to them. The ID of the form is stored in the parser.m_formId field, so very roughly the script would do this:

$("#" + parser.m_formId).find (".k-button").addClass ("myclass")

This will assign the class to all buttons in the form. You can modify the script to find a specific button.
Aware IM Support Team
weblike
Posts: 1165
Joined: Sun Dec 02, 2012 12:00 pm
Location: Europe

Re: Custom CSS for buttons - v7

Post by weblike »

aware_support wrote:There is a workaround for this. If you want to change buttons appearance in a form, use the "render" script for the form. The script can use jQuery to find buttons inside a form and add CSS class to them. The ID of the form is stored in the parser.m_formId field, so very roughly the script would do this:

$("#" + parser.m_formId).find (".k-button").addClass ("myclass")

This will assign the class to all buttons in the form. You can modify the script to find a specific button.

Thank you support for this tip!
Where can we find such documentation tips? Already exists or you'll provide one!!!
Thx,
George
________________________________
Developer Edition
AwareIM: v8.5, build 2824
OS: Windows Server 2012
DB: MySql 5.6.42
aware_support
Posts: 7525
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Re: Custom CSS for buttons - v7

Post by aware_support »

Documentation will be available in the Programmers Reference in the next beta. But it will only describe the general architecture, provide references to the appropriate places in Kendo UI documentation and show some examples. The rest is up to you. You really need to understand Javascript, jQuery etc to understand this documentation.
Aware IM Support Team
customaware
Posts: 2401
Joined: Mon Jul 02, 2012 12:24 am
Location: Ulaanbaatar, Mongolia

Re: Custom CSS for buttons - v7

Post by customaware »

Another great reason to come to the Conference!!!!!
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Image
johntalbott
Posts: 619
Joined: Wed Jun 17, 2015 11:16 pm
Location: Omaha, Nebraska
Contact:

Re: Custom CSS for buttons - v7

Post by johntalbott »

aware_support wrote:Documentation will be available in the Programmers Reference in the next beta. But it will only describe the general architecture, provide references to the appropriate places in Kendo UI documentation and show some examples. The rest is up to you. You really need to understand Javascript, jQuery etc to understand this documentation.
Was this included in Beta 2133? Me no see.
VocalDay Solutions - Agility - Predictability - Quality

We specialize in enabling business through the innovative use of technology.

AwareIM app with beautiful UI/UX - https://screencast-o-matic.com/watch/crfUrrVeB3t
BenHayat
Posts: 2749
Joined: Thu Dec 23, 2010 5:48 am
Location: Fla, USA
Contact:

Re: Custom CSS for buttons - v7

Post by BenHayat »

johntalbott wrote:
aware_support wrote:Documentation will be available in the Programmers Reference in the next beta. But it will only describe the general architecture, provide references to the appropriate places in Kendo UI documentation and show some examples. The rest is up to you. You really need to understand Javascript, jQuery etc to understand this documentation.
Was this included in Beta 2133? Me no see.
Docs are being worked on...
Jaymer
Posts: 2450
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: Custom CSS for buttons - v7

Post by Jaymer »

does anyone have any more code or examples they can add to this thread?
pictures are nice too !!!
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
Post Reply