semantic-ui

How to “stop” closing modal if form invalid

倖福魔咒の 提交于 2019-12-25 06:01:40
问题 I have a form in a Semantic UI Modal, and I use the jQuery Form Plugin (http://malsup.com/jquery/form/#validation) to submit the form via ajax. The "submit" process of the form is triggered by the modal "ok" button. But if the form is invalid, the modal is still closed. How can I "stop" the modal close procecedure? Thanks a lot! edit Code snippets: the modal: <div class="ui modal" id="add-item-modal"> <i class="close icon"></i> <div class="header"> Eintrag hinzufügen </div> <div class=

CSS: Menu not positioned to the right side?

只谈情不闲聊 提交于 2019-12-24 19:50:20
问题 I tried everything I know but my burger menu icon just don't want to go to the right... Does anyone know what on earth keeps it left? I'm also using SemanticUI. Here's my code: https://jsfiddle.net/657pxedq/5/ HTML: <div id="navbar"> <div class="openbtn" onclick="openNav()"><i class="bars icon"></i></div> </div> <script> function openNav() { document.getElementById("mySidebar").style.width = "250px"; document.getElementById("main").style.marginRight = "250px"; document.getElementById("dimmer"

Semantic-ui - how to use sidebar in only part of a page? (ie with context)

流过昼夜 提交于 2019-12-24 13:58:48
问题 I'd like to use SemanticUI to display a sidebar in a small section of my page as an overlay. How can I do this? I've tried to get the example they have on their home page working, but am missing something.... Thanks! 回答1: You can try a working example here (JSFiddle) Here's a dump of the same example running locally: Use bower to install semantic-ui, and jquery. test.html <html> <head> <script src="bower_components/jquery/dist/jquery.min.js"></script> <script src="bower_components/semantic

semantic UI dropdown not working

两盒软妹~` 提交于 2019-12-24 13:50:49
问题 <!DOCTYPE html> <!--[if IE 7]> <html class="ie7 no-js" lang="en"> <![endif]--> <!--[if lte IE 8]> <html class="ie8 no-js" lang="en"> <![endif]--> <!--[if (gte IE 9)|!(IE)]><!--> <html class="not-ie no-js" lang="en"> <!--<![endif]--> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <script> </script> </head> <body> <select class="ui dropdown search selection" id=

How to get data from table row click using Semantic's React Table Component

三世轮回 提交于 2019-12-24 10:57:14
问题 I am trying to get a value on click from a table that I render using Semantic UI with React. I generate my row using an immutable list and I want an onclick that gives access to a unique id value. When I log my attempt to extract the value in my callback, I get: 'bff3a3e9-489e-0e19-c27b-84c10db2432b' wrapped in a td tag Relevant code: handleRowClick = (scen) => { console.log(Object.keys(scen.target)); console.log(scen.target.); } mapScenarios = () => { return ((scen, i) => { return( <Table

Make contents of flex item scroll instead of making container taller [duplicate]

本秂侑毒 提交于 2019-12-24 10:00:01
问题 This question already has answers here : Prevent flex item from exceeding parent height and make scroll bar work (2 answers) Closed 5 months ago . I have a dialog box: $(document).ready(function() { $('.ui.modal').modal('show'); }); .content { display: flex !important; flex-direction: column; } .ui.modal > .content > .scroll { flex: 1; } <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <link href="https://cdn.jsdelivr.net/npm/fomantic-ui@2.7.6/dist

Semantic-UI: Sidebar with Icons always visible

馋奶兔 提交于 2019-12-24 03:29:52
问题 I'd like to implement a sidebar, where each entry will have an Icon along to it's text. In deactivated state, the sidebar shall display only the icons, wheres in activated state, the sidebar shall expand to its whole width, showing its entries with both icons and text. Just like the menu button in Expanding Menu Button, but this behaviour for the whole sidebar. Can this be done using Semantic UI? 回答1: I have asked a similar question a while ago here, and I managed to solve it myself, by

how to add semantic ui in a rails app?

只愿长相守 提交于 2019-12-24 03:27:14
问题 i want to add semantic-ui to rails and also i dont want to use ready gems. i already install it in a semantic folder in beside other rails and build it via gulp. then i copy semantic.css to asset stylesheet and require it in application.css *= require_tree . *= require_self *=require semantic.css and link it in application.html.erb but it doesnot work properly. <link type="text/css" rel="stylesheet" href="semantic.css"> so i think i should know a lot more about adding semantic ui to a rails

Collapsible sidebar with the Semantic-UI framework

不羁岁月 提交于 2019-12-24 03:07:08
问题 I am trying to make a sidebar using Semantic-UI which, when collapsed, still has a portion visible. Something like this, to be more precise. I have tried looking in the semantic-ui css source, hoping to find something that might be of help, unfortunately, I couldn't find anything that could be useful. Is there any possible way of doing it using semantic, without having to write the whole sidebar javascript/css from scratch? Any help would be appreciated 回答1: This is exactly what the sidebar

Semantic UI Sidebar pushes elements outside of screen width

你离开我真会死。 提交于 2019-12-24 02:42:40
问题 I'm not sure if I'm doing something wrong or if this is the intended result but the I'm using semantic ui's sidebar and it pushes everything past the max screen width. Am I missing something here? <div class="ui bottom attached segment pushable"> <div class="ui left vertical menu visible thin attached inverted sidebar"> <a class="item"> Item 1 </a> <a class="item"> Item 2 </a> <a class="item"> Item 3 </a> </div> <div class="pusher"> <div id="search-bar"> <div class="ui fluid action input">