issues
search
beingtmk
/
nodejs-starter-kit
A Universal Javascript Starter Kit to satisify all you Web / App needs!
https://nodejs-starterkit.approxyma.com
MIT License
27
stars
15
forks
source link
Reusable antd components.
#50
Open
lokeshrana9999
opened
4 years ago
lokeshrana9999
commented
4 years ago
Currently look module contains a reusable iteration of antd components but not all of them.
Steps-
Choose the correct version.
See if component is already there.
If Not:
Create a new file following existing naming convention.
Write the component code like this
Code
Add the proptypes using this part of the antd component page.
Update export in index.js file
If component already present.
Update the proptypes.
Ps leave out the data entry section of the antd components for now.
lokeshrana9999
commented
4 years ago
Comment here for any doubts
beingtmk
commented
4 years ago
create "actions" folder in "ui-antd/components"
add 2 buttons for each action i.e (circular button with only icon) & (rectangular button with icon & text)
create a demo page "demo/actions" - where all components are displayed & console.logs when clicked (onClick function should be passed from outside.)
Btns with text will have default text but can be overided if "text" prop is passed.
Define the proptypes in the respective components.
add
edit
view
delete (will have pop-confirm)
next
submit (will have pop-confirm, but will be configurable i.e. default false but show if "confirm=true" prop is passed)
remove (minus icon) (will have pop-confirm, but will be configurable i.e. default false but show if "confirm=true" prop is passed)
activate / deactivate (will have pop-confirm)
publish / disable (will have pop-confirm)
@r-kohale9, @ishanajmeri
Currently look module contains a reusable iteration of antd components but not all of them.
Steps-
Ps leave out the data entry section of the antd components for now.