Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add negative prop to Input component #38

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rizmyabdulla
Copy link

@rizmyabdulla rizmyabdulla commented Jan 18, 2025

Fixes #37

Add support for negative numbers in the Number Input component.

  • Add a new negative prop to the Input component in packages/stdf/components/input/Input.svelte.
  • Update the valueChangeFun function in packages/stdf/components/input/Input.svelte to handle negative numbers when the negative prop is set.
  • Update the type prop in doc/components/input/api_en.md and doc/components/input/api.md to include a 'negative' option.
  • Add a description for the negative prop in doc/components/input/api_en.md and doc/components/input/api.md.
  • Add examples of the negative prop in demo/src/routes/en_US/input/+page.svelte and demo/src/routes/zh_CN/input/+page.svelte.

Fixes any-tdf#37

Add support for negative numbers in the Number Input component.

* Add a new `negative` prop to the `Input` component in `packages/stdf/components/input/Input.svelte`.
* Update the `valueChangeFun` function in `packages/stdf/components/input/Input.svelte` to handle negative numbers when the `negative` prop is set.
* Update the `type` prop in `doc/components/input/api_en.md` and `doc/components/input/api.md` to include a 'negative' option.
* Add a description for the `negative` prop in `doc/components/input/api_en.md` and `doc/components/input/api.md`.
* Add examples of the `negative` prop in `demo/src/routes/en_US/input/+page.svelte` and `demo/src/routes/zh_CN/input/+page.svelte`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/any-tdf/stdf/issues/37?shareId=XXXX-XXXX-XXXX-XXXX).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature]: Negative Number Input
1 participant