New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

fit-ui

Package Overview
Dependencies
Maintainers
1
Versions
335
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fit-ui

Object Oriented framework for building rich User Interfaces

latest
Source
npmnpm
Version
3.5.1
Version published
Weekly downloads
98
-76.39%
Maintainers
1
Weekly downloads
 
Created
Source

Fit.UI

Fit.UI is an Object Oriented framework for building rich User Interfaces in JavaScript.

For information on how to use Fit.UI, please see Fit.UI's official website. For source code, please visit Fit.UI on GitHub.

Installation

Install Fit.UI using the package manager or download it from Fit.UI's website.

npm install fit-ui

Include Fit.UI (external resource)

The following files and folders are required to use Fit.UI as an external resource (not bundled with the application).

  • node_modules/fit-ui/dist/Controls
  • node_modules/fit-ui/dist/Resources
  • node_modules/fit-ui/dist/Fit.UI.js
  • node_modules/fit-ui/dist/Fit.UI.css
  • node_modules/fit-ui/dist/Fit.UI.min.js
  • node_modules/fit-ui/dist/Fit.UI.min.css

Simply add references to the stylesheet and Fit.UI itself:

<link rel="stylesheet" type="text/css" href="path/to/fit-ui/Fit.UI.min.css">
<script src="path/to/fit-ui/Fit.UI.min.js"></script>

Fit.UI is now ready to be used:

alert("Fit.UI loaded: " + (window.Fit ? "Yes" : "No"));

Bundle Fit.UI

If a bundler such as Webpack is used, all we need to do is import or require Fit.UI, and the core of the framework will be bundled with the application, allowing us to resolve Fit.UI from the global scope.

import * as Fitty from "fit-ui";
// or
var Fitty = require("fit-ui");

alert("Fit.UI is loaded: " + (Fitty ? "Yes" : "No"));

However, to use UI components such as Dialog, DatePicker, HTML Editor, and FilePicker, the following files and folders must be copied to the folder containing the application bundle:

  • node_modules/fit-ui/dist/Fit.UI.min.css
  • node_modules/fit-ui/dist/Controls
  • node_modules/fit-ui/dist/Resources

Example code

The official website for Fit.UI has plenty of online demos. Here is a small sample to get you started.

var datepicker = new Fit.Controls.DatePicker("DatePicker1");
datepicker.Date(new Date());
datepicker.Render(document.body);

var button = new Fit.Controls.Button("Button1");
button.Title("Get date");
button.Icon("calendar");
button.OnClick(function()
{
    var date = Fit.Date.Format(datepicker.Date(), "YYYY-MM-DD");
    Fit.Controls.Dialog.Alert("Date: " + date);
});
datepicker.Render(document.body);

Keywords

JavaScript

FAQs

Package last updated on 23 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts