Antd Icon
Overview
Introduction
A Mendix Widget widget implemented based on Ant Design. The widget implements most of the interfaces of icon in Ant Design (antd). You can go here to see various features of the original antd component.
View features of this project on online demo.
Features
- Support two types of resources, including: buildin and external iconfont.
- Support static definition or dynamic iconfont with data source.
- Support other Ant Design icon API configuration
Documentation
Introduction
A Mendix Widget widget implemented based on Ant Design. The widget implements most of the interfaces of icon in Ant Design (antd). You can go here to see various features of the original antd component.
View features of this project on online demo.
Features
- Support two types of resources, including: buildin and external iconfont.
- Support static definition or dynamic iconfont with data source.
- Support other Ant Design icon API configuration
Quick start
- Add the widget to Mendix Project.
- Download the latest mpk file from here.
- Copy the mpk file to your Mendix Project directory {YourMendixProjectFolder}/widgets/.
- Open your Mendix Project with Mendix Studio Pro, then click the menu Menu > App > Synchronize App Directory.
- Use Antd Icon.
- Select any page and search Antd Icon from the Toolbox in Mendix Studio Pro.
- Add an Antd Icon widget to the page.
- Set properties for the widget. Double-click the widget and follow the settings:
- Select Buildin from data source;
- Select an icon from the Select icon dropdown list
- Have fun!
Demo project
- You can access the online demo from here to show the features of this widget.
- You can also download the demo project from here to run it on your own PC.
Detailed configuration instructions
General
The General tab contains most of the common configuration options
- Icon source - Support buildin icons and use external iconfont.
- Select icon - 50+ buildin icons for users
- Icon code - Specify data attribute to retrive icon name
- Rotate - Support icon rotate
- Spin - Support icon spin animation
External icons
you can use iconfont to customize the icons
add a iconfont library to the Icon source, and fill in the Icon code
p.s. There are some restricts within Ant Design Icon with iconfont. Iconfonts are named after icon-. e.g: icon-wrong-b. We shall fill in the Icon code with the 2nd part wrong-b.
Issues, suggestions and feature requests
At the same time, your are welcome to get into the China Technology Forum to get more in Mendix widget development. check this out
Local development and contributions
- Clone the project locally and install dependencies with npm install. If the npm version is v7.x.x, (users can use npm -v to check the version), use the following command to install dependencies: npm install --legacy- peer-deps.
- Run npm start in the command line to start bundle the widget:
- Project started bundling...
- Wait for the dinner, and the widget will be automatically generated in the dist directory;
- Developers can modify the package.json, and specify the test project of Mendix. When your dinner is ready, the widget will be automatically synchronized to the deployment and widgets directories.