TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Simple, Plain, Customizable JS Dialogs.

3 pointsby mattlockyerabout 11 years ago
Frustrated by the lack of a simple, customizable JS dialog, I decided to create a mini library that captures the simplicity of the 3 classic JS dialogs: alert, confirm, prompt, but allows for needed custom features like styling, button labels, and html5 placeholders for inputs. Seeking feedback on any potential issues, code architecture and style, and general usefulness. Before you chime in about jQuery UI or some other framework/library that has this included, think first about projects that don't require such a heavily scripted or styled component and would benefit from a straightforward, easy to customize solution.

3 comments

mattlockyerabout 11 years ago
I was frustrated by the lack of a simple, customizable JS dialog. I decided to create a mini library that captures the simplicity of the 3 classic JS dialogs: alert, confirm, prompt, but allows for needed custom features like styling, button labels, and html5 placeholders for inputs. Seeking feedback on any potential issues, code architecture and style, and general usefulness. Before you chime in about jQuery UI or some other framework/library that has this included, think first about projects that don't require such a heavily scripted or styled component and would benefit from a straightforward, easy to customize solution.
docviousabout 11 years ago
I think this is a smart foundation. Despite the fact that this problem is tackled in countless libraries, there is no real standalone solution. Would be interested in seeing this grow to include basic form functionality.
danhodginsabout 11 years ago
What does Dia stand for?
评论 #7705161 未加载