How to make a box with title and controls? - twitter-bootstrap-3

Using Twitter Bootstrap 3 how can I create a box (DIV) that has a title, and below the title a row for icons or text, and below that an area for text?
For example:
--------------
| My Title |
|--------------|
| Print | Edit |
|--------------|
| This is the |
| body of my |
| DIV box. |
--------------
Thanks!

This can be done several ways. Here are a few options:
First, is a modal. That doesn't seen to be your goal necessarily though:
Modals: http://getbootstrap.com/javascript/#modals
Next is a list group, which seems closer:
List Groups: http://getbootstrap.com/components/#list-group
The closest one to what it seems like you want is a panel:
Panels: http://getbootstrap.com/components/#panels

Related

cucumber data table multiple seperate iteration

In the following feature file my requirement is to put one doc_id for every three field. To clarify, I want to check ProductName, manufacturerName and RevisionDate for every doc_id. I came up with following method but I think this is definitely not the preferred one. Can anyone suggest me a better way.
Background:
Given I am in landigpage page after login
Scenario Outline: valid
When I enter "<doc_id>"
And I click the search go button
Then I should get in vault search page
And Search result of "<field>" should match with database
Examples:
| doc_id | field |
| 15 | ProductName |
| 15 | ManufacturerName |
| 15 | RevisionDate |
Examples:
| doc_id | field |
| 16 | ProductName |
| 16 | ManufacturerName |
| 16 | RevisionDate |
You can use single examples table:
Background:
Given I am in landigpage page after login
Scenario Outline: valid
When I enter "<doc_id>"
And I click the search go button
Then I should get in vault search page
And Search result of "<field>" should match with database
Examples:
| doc_id | field |
| 15 | ProductName |
| 15 | ManufacturerName |
| 15 | RevisionDate |
| 16 | ProductName |
| 16 | ManufacturerName |
| 16 | RevisionDate |
I don't see any other way to pass arguments the way you need to. That's what I don't like about Cucumber. It is not that flexible.
Bacckground:
Given I am in landigpage page after login
Scenario Outline: valid
When I enter "<doc_id>"
And I click the search go button
Then I should get in vault search page
And the search results should match the database
Examples:
| doc_id |
| 15 |
| 16 |
and to make this work:
When /^I enter "<\w+>"$/ do | doc_id |
#doc_id = doc_id
...
end
Then "the search results should match the database" do
db_results = db.find(#doc_id) # or something similar
... # compare db_results to actual results
end
This still kind of sucks, because you have doc_id's in your Gherkin, you are relying on a prefilled database and you have a scenario outline; but hey lets save that for other questions :)
Hi i guess you guys are confusing Data Tables and scenario outline.
The solution for above is :
Background:
Given I am in landingpage page after login
Scenario Outline: valid
When I enter "<doc_id>"
And I select to navigate to search page
Then Search result of field should match with database
| ProductName |
| ManufacturerName |
| RevisionDate |
Examples:
| doc_id |
| 15 |
| 16 |
The table can easily be converted to a list or a map that you can use in your step.

MS Access draw table on the report

How is it possible to draw a table on MS Access Report without RecordSource?
I need very simple table with black borders, that should be flexible depending on the passed text
-----------------------------------
| Header1 | Header 2 | Notes |
-----------------------------------
| Text1 | Text 2 | Notes |
| | | text |
-----------------------------------
There is "Arrange" tab, which contains some table elements, but it's disable.
How to resolve that?
Thanks a lot
Put textbox control on the Report, then right mouse click on the control, choose Layout->Tabular, in that case you will have a table/grid flexible and Enabled "Arrange" tab. Also you can set up borders of the cells.

how to show many image from URL in UIscrollView

I want create one page that has 3 horizontal (right to left) Scroll in top & middle & down page.
in each scrollview there are many image like this :
----------------------------------------
| ------- -------- -------- |
| | | | | | | | Outside the box is scroller!!!
| | | | | | | |
| ------- -------- -------- |
----------------------------------------
in any page of scroll exist 3 image .
I want when change page of scroll images that exist this page changing!!! (like Scroll in IMDB application)
I can create Scroll and I can read many images from URL but I can not connect these!!! :(
please tell me about.
Check iCarousel brilliant lib for doing stuff like that. It includes a lot of examples and compatible with iOS5.
This might work for you:
A. Create a UIView to hold 3 UImageViews to contain the 3 images.
B. Add the UIView as the contentView of the UISrollView.
C. Use a combination of UIPageControl and UIScrollView.

How to create Menu Items in Metro Apps in windows8

Iam trying to develop metro appications in windows8 using visual studio 2012RC .Here i need Menu Items like a column wise,And each Item need to navigate separate page if user click on it.Here i tried to give u my application scenario.Any working examples are really helpful to me.
Thank you.
MetroApplication:
----------------------------------
| | |
| Item1 |-->Page1 |
|========= |
| |-->Page2 |
| Item2 | |
|========= |
| | |
| Item3 |-->Page3 |
|========= |
| Item4 |-->Page4 |
| | |
----------------------------------
You can use a vertical StackPanel that contains bunch of Buttons: each button will then navigate to the dedicated page.

Programmatically add textview and label to nstableView using Cocoa

I have a NSTableView with multiple rows and just 1 column.
I want to display table in following format:
----------------------------
| Label - 1 |
| |
| textxtview contents-1 |
| height 20 |
----------------------------
| Label - 1 |
| |
| textxtview contents-1 |
| height 40 |
----------------------------
The height of text view should be fixed and its scrollable
Label & text view text color should be different.
How do I programmatically add labels and textview and set the frames?
You maybe should take a look at NSCollectionView. That's easier to use as you can design the cell view in Interface Builder.