Skip to content

Molkobain/itop-handy-framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 

Repository files navigation

iTop extension: molkobain-handy-framework

Support

If you like this project, you can buy me beer, always appreciated! 🍻😁

Donate

Description

A bunch of Core & UI helpers to be used by other extensions.

This extension doesn't bring any features, it is meant to used by some extensions out there or by you to create your own.

Content

Attribute types

  • AttributeRackUnit: Extends the AttributeInteger type to show the 'U' unit on display.

Example on a server with the Position attribute before and after using the new rack unit type

Attribute rack unit before Attribute rack unit after

UI

Console tooltips

Use the new molkobain-light and molkobain-dark themes to qTip tooltips for a more modern look & feel.

Tooltip with the regular light theme and with the new molkobain-lighttheme.

Light tooltip before Light tooltip after

Toggle buttons

Display checkboxes as nice toggle buttons in forms by using UIHelper::MakeToggleButton().

Button designs

Some CSS clases to put predefined designs on buttons. Check the .mhf-button classes.

Buttons

Loading overlay

Use the .mhf-loader class to have a nice overlay when you need to block some parts of the UI. Toggle .mhf-hide class on it to hide / show it.

Code helpers

String manipulations

StringHelper class to simplify some string manipulations:

  • StringHelper::ToCamelCase($sInput) transforms a snake case string into a camel case string (eg. "some_string" => "SomeString")

Compatibility

Compatible with iTop 2.7+

Downloads

Stable releases can be found on the releases page.

Downloading it directly from the Clone or download will get you the version under development which might be unstable.

Installation

Installation procedure is the same as for any iTop extension, just follow the instruction on the iTop official documentation here.

Configuration

No configuration needed.

Parameters

The extension has only 1 configuration parameter:

  • enabled: Enable or disable extension. Possible values are true|false, default is true.

Licensing

This extension is under AGPLv3.

About

A bunch of Core & UI helpers to be used by other extensions.

Topics

Resources

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published