semantic-ui

Using Semantic UI With CSS Modules in Webpack

孤街浪徒 提交于 2019-12-02 05:18:38
问题 I have import 'semantic-ui-css/semantic.min.css' in index.js , as instructed by Semantic UI. Before I did yarn eject (to enable CSS modules with create-react-app ) everything worked fine, but as soon as I did I got the following error: Module not found: Can't resolve 'themes/default/assets/fonts/icons.eot' in '[MY_PROJECT_DIR]/node_modules/semantic-ui-css' I thought that it might be an issue with Webpack's loaders' not dealing with font files, so I found this: { test: /\.(eot|woff|woff2|ttf

Adding errors to form validation doesn't work?

拜拜、爱过 提交于 2019-12-02 04:49:25
问题 According to the Semantic UI docs on form validation, I can add errors manually: add errors(errors) | Adds errors to form, given an array errors (I want to use this feature because I submit my form via AJAX, do server-side validation, then want to display the results.) I tried the following code: $('#my-form').form("add errors", [ 'error' ]); $('#my-form').form("validate form"); I get this contradictory output from the console when calling the above methods, and the form validates as

Adding errors to form validation doesn't work?

◇◆丶佛笑我妖孽 提交于 2019-12-02 02:20:00
According to the Semantic UI docs on form validation , I can add errors manually: add errors(errors) | Adds errors to form, given an array errors (I want to use this feature because I submit my form via AJAX, do server-side validation, then want to display the results.) I tried the following code: $('#my-form').form("add errors", [ 'error' ]); $('#my-form').form("validate form"); I get this contradictory output from the console when calling the above methods, and the form validates as successful when it obviously shouldn't. Any idea? It appears like you are trying to recreate the wheel when

Semantic UI in Rails Stylesheet could not be loaded. A lot of errors in parsing value

旧城冷巷雨未停 提交于 2019-12-01 12:58:05
I'm working on a Rails app that uses Semantic UI as its frontend framework. I'm using Rails 5. I followed the instructions on this site ( https://github.com/Semantic-Org/Semantic-UI-Rails-LESS ) to include the gems needed for Semantic to work on Rails. In my html.erb file (the left portion of the photo), I've used some Semantic UI buttons, just to test out if Semantic loads. I believe it loaded, but I'm getting a bunch of errors in my console (+ it is saying on the top right that the Style sheet could not be loaded). What seems to be the problem? EDIT I was able remove the 'Style sheet could

Semantic UI in Rails Stylesheet could not be loaded. A lot of errors in parsing value

大城市里の小女人 提交于 2019-12-01 09:58:21
问题 I'm working on a Rails app that uses Semantic UI as its frontend framework. I'm using Rails 5. I followed the instructions on this site (https://github.com/Semantic-Org/Semantic-UI-Rails-LESS) to include the gems needed for Semantic to work on Rails. In my html.erb file (the left portion of the photo), I've used some Semantic UI buttons, just to test out if Semantic loads. I believe it loaded, but I'm getting a bunch of errors in my console (+ it is saying on the top right that the Style

Semantic-ui dropdown is not working

谁都会走 提交于 2019-12-01 00:32:17
问题 I have a trouble integrating a dropdown menu in my HTML form. I've tried everything I can do and what I found online but it still doesn't work. I found that this code runs properly on JSFiddle. The script paths are fine and the scripts are loaded correctly. Did I miss something? <html> <head> <meta charset="UTF-8"> <link href="../semantic/packaged/css/semantic.min.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>

Bug in Meteor/Semantic-UI?

馋奶兔 提交于 2019-12-01 00:13:02
the usage of a semantic-ui modal window does not work if the root-element is a meteor template: package: semantic-ui-css Error reproduction: hello.html: <template name="hello"> <head> <title>Hello Error</title> </head> <body> <h1>Reproduce error</h1> {{> navigation}} <div class="delete openModal">OPEN<i class="close icon"></i></div> <div id="modalView" class="ui modal"> <div class="content"> <div class="ui fluid input"> Modal Error Test </div> </div> <div class="actions"> <div class="ui button cancel">Cancel</div> <div class="ui button ok">OK</div> </div> </div> </body> </template> <template

Which one is the right one? Semantic UI: Responsive Visibility

China☆狼群 提交于 2019-11-30 10:41:39
问题 I am new with semantic-UI and i love with the framework. They have vast of helpful documentation though, and more so confusing thing. How does the Responsive visibility work? There are the [mobile only tablet only small monitor only large monitor only] for the container... and some of the code, i found that there was [computer only, device only] ? What are the difference? thank you. 回答1: Updated to reflect current docs and version 2.4.2 Responsive Visibility works by hiding a certain element

semantic-ui modal size keeps extending to the height of a page

做~自己de王妃 提交于 2019-11-30 03:40:06
问题 I'm trying to implement a basic modal, but its size is kept being extended to height of a page. Trigger code: $('.ui.modal.apply-modal').modal('show'); Modal Code: <div class="ui modal apply-modal"> <i class="close icon"></i> <div class="header"> Modal Title </div> <div class="content"> facebook </div> <div class="actions"> <div class="ui button">Cancel</div> <div class="ui button">OK</div> </div> 回答1: It turns out that Bootstrap package is conflicting with Semantic-UI package I use. Simply

Which one is the right one? Semantic UI: Responsive Visibility

我只是一个虾纸丫 提交于 2019-11-29 21:48:42
I am new with semantic-UI and i love with the framework. They have vast of helpful documentation though, and more so confusing thing. How does the Responsive visibility work? There are the [mobile only tablet only small monitor only large monitor only] for the container... and some of the code, i found that there was [computer only, device only] ? What are the difference? thank you. Updated to reflect current docs and version 2.4.2 Responsive Visibility works by hiding a certain element (usually a ui container , but can also be e.g. grid rows) on specific screen sizes. For example, <div class=