semantic-ui

Semantic UI dropdown change handler

二次信任 提交于 2019-11-29 21:35:31
I have the following dropdown using Semantic UI: <div class="ui selection dropdown select-language"> <input name="language" type="hidden" value="fr-FR"> <div class="text">French</div> <i class="dropdown icon"></i> <div class="menu ui transition hidden"> <div class="item" data-value="en-US">English</div> <div class="item active" data-value="fr-FR">French</div> </div> </div> And in the jQuery side I init it: $(".select-language").dropdown() How can I add the change handler? The only thing related to this I found in the documentation is: onChange(value, text) Context: Dropdown Is called after a

Using vue.js with semantic UI

不打扰是莪最后的温柔 提交于 2019-11-29 20:22:17
I'm trying to use webpack + Semantic UI with Vue.js and I found this library https://vueui.github.io/ But there was problem compling: ERROR in ./~/vue-ui/components/sidebar/sidebar.jade Module parse failed: /Project/node_modules/vue- ui/components/sidebar/sidebar.jade Unexpected token (1:24) You may need an appropriate loader to handle this file type. So I installed jade(pug) but still no luck. And there's comment in github for that lib: WIP, do not use ( https://github.com/vueui/vue-ui ) I've managed to import semantic css in my templates like this: @import './assets/libs/semantic/dist

How to keep focus within modal dialog?

[亡魂溺海] 提交于 2019-11-29 10:45:21
I'm developing an app with Angular and Semantic-UI . The app should be accessible, this means it should be compliant with WCAG 2.0. To reach this purpose the modals should keep focus within the dialog and prevents users from going outside or move with "tabs" between elements of the page that lays under the modal. I have found some working examples, like the following: JQuery dialog: https://jqueryui.com/dialog/#modal-confirmation dialog HTML 5.1 element: https://demo.agektmr.com/dialog ARIA modal dialog example: http://w3c.github.io/aria-practices/examples/dialog-modal/dialog.html (that I have

Form Validation with Semantic-UI-React

烈酒焚心 提交于 2019-11-28 22:57:51
问题 I am using the official Semantic UI React components to create a web application. I have a form on my sign up page, which contains an email field, a password field, and a confirm password field. import {Component} from 'react'; import {Button, Form, Message} from 'semantic-ui-react'; import {signUp} from '../../actions/auth'; class SignUp extends Component { constructor(props) { super(props); this.handleSubmit = this.handleSubmit.bind(this); } handleSubmit(e, {formData}) { e.preventDefault();

How can I separate generated artifacts from the main build with semantic UI?

ぐ巨炮叔叔 提交于 2019-11-28 21:35:12
I am trying to figure out how to integrate Semantic UI with my gulp-based frontend toolchain. The npm artifact semantic-ui includes an interactive installer that will write a semantic.json file to the root of my project and install the less files, gulp tasks and some configuration into my project. All of these files will be put in subdirectories of a single base directory specified in semantic.json. I do not want any dependency implementation files or any generated files in the git repository for my project because this will pollute revision history and lead to unneccessary merge conflicts. I

Semantic UI dropdown change handler

社会主义新天地 提交于 2019-11-28 17:33:28
问题 I have the following dropdown using Semantic UI: <div class="ui selection dropdown select-language"> <input name="language" type="hidden" value="fr-FR"> <div class="text">French</div> <i class="dropdown icon"></i> <div class="menu ui transition hidden"> <div class="item" data-value="en-US">English</div> <div class="item active" data-value="fr-FR">French</div> </div> </div> And in the jQuery side I init it: $(".select-language").dropdown() How can I add the change handler? The only thing

semantic-ui dropdown menu do not work

北城余情 提交于 2019-11-28 07:08:54
I have been trying to build a menu using Semantic-UI. I can't get the dropdown menus to work at all. I took a copy of the page Menu examples and pulled out everything except the tiered menu and placed it in a separate file. Only the dropdown menu will not function, though there are no errors. Can anyone tell me what I have missed? <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="Content-Script-Type" content="text/jscript" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <link rel="stylesheet" type="text/css" class="ui"

How to keep focus within modal dialog?

喜夏-厌秋 提交于 2019-11-28 04:03:59
问题 I'm developing an app with Angular and Semantic-UI . The app should be accessible, this means it should be compliant with WCAG 2.0. To reach this purpose the modals should keep focus within the dialog and prevents users from going outside or move with "tabs" between elements of the page that lays under the modal. I have found some working examples, like the following: JQuery dialog: https://jqueryui.com/dialog/#modal-confirmation dialog HTML 5.1 element: https://demo.agektmr.com/dialog ARIA

Equal height columns with centered content in flexbox

橙三吉。 提交于 2019-11-27 21:33:41
I'd like to have two columns of equal height and their content should be middle aligned, so in the very center of each div. Problem: 'equal height' and 'middle aligned' seem to exclude themselves, the one doesn't work with the other. Question: How can I create a row with two columns with different width, equal height and their content centered in the middle of each column? <!-- 'middle aligned' and 'equal height' don't like each other ? --> <div class="ui equal height center aligned grid"> <div class="row"> <div class="twelve wide purple column"> <p>Text Text Text</p> <p>Text Text Text</p> <p

semantic-ui dropdown menu do not work

时光毁灭记忆、已成空白 提交于 2019-11-27 01:44:19
问题 I have been trying to build a menu using Semantic-UI. I can't get the dropdown menus to work at all. I took a copy of the page Menu examples and pulled out everything except the tiered menu and placed it in a separate file. Only the dropdown menu will not function, though there are no errors. Can anyone tell me what I have missed? <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="Content-Script-Type" content="text/jscript" /> <meta http