Skip to content

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

Notifications You must be signed in to change notification settings

ops-itop/itop-handy-framework

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 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.4+

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

  • Unzip the extension
  • Copy the molkobain-handy-framework folder under <PATH_TO_ITOP>/extensions folder of your iTop
  • Run iTop setup & select extension Molkobain's handy framework

Your folders should look like this

Extensions folder

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published