Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
At my company we have a very complex build-system based on Ant. Understanding it took me a long time. I'm currently restructuring it and would also make it easier for new developers to win through it.
Is there any (good) documentation-generator that can generate a documentation based on build.xml-files and their includes?
You can write XSLT rules to convert it to HTML with the links or smth like this.
(Hmm, or much easier may be using CSS for build.xml)
i.e.
<target name="tar1" depends="tar2, tar3">
....
</target>
will come to
<div class="target">
<a name="tar1"><p class="name">tar1</p></a>
<div class="deps-list">
Depends on:
<ul>
<li>tar2</li>
<li>tar3</li>
</ul>
</div>
<div class="content">
Tasks:
<ul>
<li><p class="taskname">Copy</p><p class="taskargs">args...</p></li>
...
</ul>
</div>
</div>
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I use litElement with vaadin and have next code
<vaadin-app-layout .drawerOpened='false'>
<vaadin-drawer-toggle slot="navbar" ></vaadin-drawer-toggle>
<vaadin-tabs selected="-100" slot="drawer" orientation="vertical" theme="minimal" style="margin: 0 auto; flex: 1;">
${this.renderTabsDependOnStatusAccess()}
</vaadin-tabs>
<div class="content" >
<div id="outlet"></div>
</div>
</vaadin-app-layout>
but my vaadin-drawer-toggle component is still open, how can I make it private by default and wats wrong with my example
I've not used this component, but I'll guess that in JS it's drawerOpened while in HTML it's drawer-opened. Also, boolean attributes are usually present or not, so instead of drawer-opened="false" you probably just remove it. Plain drawer-opened would be true.
If this HTML or in the LitElement render()? In the latter you may want to use ?drawer-opened="${this.isDrawerOpen}" and toggle a property this.isDrawerOpen
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
Could anyone recommend a good Drag-and -Drop framework out of the box ?
Something like this jquery-ui example, where one can drop a set of widgets onto a sort of Dashboard layout page - example using a photo gallery http://jqueryui.com/droppable/#photo-manager
I just recently found this very cool jquery-ui and Bootstrap 3.0 based dynamic layout tool called gridmanager - http://neokoenig.github.io/jQuery-gridmanager/
You can also check out demos here http://neokoenig.github.io/jQuery-gridmanager/demo/
So with this in mind, I'd like to add a drag/drop sidebar which will allow me to drop "gadgets" onto the grid system.
I'm using Kendo UI as well as JQWidgets, but I'm a bit unsure of how to integrate drag/drop onto this gridmanager system.
After adding jquery-ui and gridmanager js/css files to my index page, here's what the code looks like :
<section id="dashboard-view" class="mainbar" data-ng-controller="dashboard as vm">
<section class="matter">
<div id="mycanvas">
<div class="row">
<div class="col-md-6">
<p>Content</p>
</div>
<div class="col-md-6">
<p>Content</p>
</div>
</div>
</div>
</section>
</section>
<script>
$(document).ready(function () {
var gm = $("#mycanvas").gridmanager({ // fluid widths
controlPrepend: "<div class='row-fluid'><div class='col-md-12'><div id='gm-addnew' class='btn-group '>",
rowClass: "row-fluid",
rowSelector: "div.row-fluid",
rowPrepend: "<div class='row-fluid gm-editing'>"
});
$(".myexternalcontrol").on("click", function (e) {
// Example use of internal gridmanager function:
gm.appendHTMLSelectedCols('<p>my content to append to all my selected cols</p>');
});
});
</script>
Again, I'd like to setup a sidebar or topbar of widgets which can be dragged onto each grid section below (see screen shots).
and here's a screen shot of how it renders in my beta website.
Thnks in advance for your advice.
regards,
Bob
I'm one of the authors of gridmanager.js. Firstly, jqueryUI is required by gridmanager, so you've already got the drag/drop functionality on the page. However, GM is already using the draggable/sortable jqueryUI features, so be warned you might get some clashes.
GM actually creates a lot of temp markup (and then strips it out on preview/save) - have a look at the generated source code - you'll see divs of class "gm-editable-region" - might be worth trying to make that class a 'droppable' region (i.e, so other things can be dropped on it). You might have to extend gridmanager's activateCols function in order to 'reactivate' the droppable regions when it's gone through the preview process though.
Good luck - the github issue queue is here https://github.com/neokoenig/jQuery-gridmanager/issues
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I need to be able to set up kind of a navigatable menu. So like, there could be three boxes, each one with a number on it, and if you click on one of them it executes a certain code or takes one to another page. I feel dumb for not knowing how to do this, but I have success in everything but this, thanks so much!
It depends on what you want, but simply, you'd need this:
#config/routes.rb
resources :pages
#app/views/elements/nav.html.erb
<% pages = %w(home about contact) %>
<% for page in pages do %>
<%= link_to "Home", page_path(page) %>
<% end %>
You'll be able to style the boxes to look like buttons using CSS
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
I am trying to create a simple calculator application .
calculator.html.erb
<input type=text name="operand_one" value="0"></td>
<input type=text name="operand_two" value="0"></td>
.
.
.
<input type=text name="output" value="<% =#result %>"></td>
I am able to get the output correctly but the values of the first two text boxes changes to 0 , I need to know how to retain these values ..
You're hardcoding the value to "0" with this part of the code
value="0"
you could change the lines to
<input type=text name="operand_one" value="#value_one"></td> #etc...
and in your controller
#value_one = 0 unless X
but X depends on how your controller works - do you go to a new action to solve the problem in the calculator? if so you'll have to use the params hash.
Not related to the question, but why are you using text for your calculation fields? and are you hard coding that html or it's just the output?
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
hi i have a value like this in html.erb
<img src="<%= file.title, file_path(file) %>" alt=""/>
but when I placed the above code it throws an error
SyntaxError in Files#index
the error comes on file_path(file) section . Is there a way to accomplish this ? like declare a variable and assign it to something ?
Though I did not get whay you are trying to achieve but you can try to do it like this
<img src="<%= "#{file.title}, #{file_path(file)}" %>" alt=""/>
You should declare file (a better naming is #file) in the controller action which is associated with this view. There you can do whatever you want with your variable.