-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0351ee9
commit 6c65ee2
Showing
5 changed files
with
50 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Bootstrap the library | ||
require_relative "NxBootstrap.rb" | ||
|
||
# ================================================== | ||
# Example of CSVTable control in TabbedCustom Dialog | ||
# ================================================== | ||
|
||
# Create tabbed dialog and tab | ||
dialog = TabbedCustomDialog.new("CSV Table") | ||
main_tab = dialog.addTab("main_tab","Main") | ||
|
||
# Add CSV table (table which can import CSV) | ||
main_tab.appendCsvTable("csv_data",["English","Spanish","Chinese","Japanese"]) | ||
|
||
# Display dialog | ||
dialog.display | ||
|
||
# Display what was in the table | ||
dialog.toMap["csv_data"].each_with_index do |record,record_index| | ||
puts "Record #{record_index}" | ||
record.each do |k,v| | ||
puts "#{k} => #{v}" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
English,Spanish,Chinese,Japanese | ||
I asked for no sardines on my pizza,No pedí sardinas en mi pizza.,"我要求披萨上不要放沙丁鱼 | ||
Wǒ yāoqiú pīsà shàng bùyào fàng shādīngyú","ピザにはイワシは入れないと頼んだ | ||
Piza ni wa iwashi wa hairenai to tanonda" | ||
Yes that bike is imbued with the light house keeper's dreams.,"Sí, esa bicicleta está imbuida de los sueños del farero.","是的,这辆自行车充满了灯塔守护者的梦想。 | ||
Shì de, zhè liàng zìxíngchē chōngmǎnle dēngtǎ shǒuhù zhě de mèngxiǎng."," | ||
そう、その自転車には灯台守の夢が込められているのです。 | ||
Sō, sono jitensha ni wa tōdaimori no yume ga kome rarete iru nodesu." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters