tabris | Tabris for Eclipse RAP | Code Editor library
kandi X-RAY | tabris Summary
kandi X-RAY | tabris Summary
This repository contains the Tabris server parts and additional features that are not contained in the RAP core.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Register file upload service handler
- Notify listeners that the image has been uploaded
- Notification about an upload failed
- Attempts to decode the given Base64 encoded data
- Retrieves a base - 64 encoded byte array
- Returns the number of bytes necessary to decode the source
- Creates a runnable that returns the renderable
- Render the bounding box property
- Clears the timer
- Compares two PageDescriptors
- Encodes and decodes a file from the command line
- Overwrites a set of properties
- Decode data to a file
- This method generates a hashCode of the product
- Set the nonProxyHosts property
- Checks for equality
- Creates a hash code for the item
- Create the page switcher
- Removes an action configuration
- Encode data to a file
- Creates the UI parent
- Compares this bounding box with another
- Creates a unique hash code for this page
- Return the width and height of the given composite control
- Computes the size of the image in pixels
- Compares two order items
tabris Key Features
tabris Examples and Code Snippets
com.eclipsesource.tabris
tabris
mvn archetype:generate -DarchetypeGroupId=com.eclipsesource.tabris -DarchetypeArtifactId=tabris-application -DgroupId=app -DartifactId=app -DpackageName=app -Dversion=0.1-SNAPSHOT -DinteractiveMode=false
Community Discussions
Trending Discussions on tabris
QUESTION
Few month ago I gave a try to Tabris, a nice framework for the development of native Android and iOS apps in Javascript. I wanted to get back to it today but my test app has javascript version issues.
First, the QR code scanning on Tabris mobile app side failed with error udefined
. I setup the IP address manually and the app got connected to the Tabris server running on my laptop. However, the console on the mobile app complains with: Version mismatch: Javascript module "Tabris" (version 3.5.0) is incompatible with the native tabris platform (version 3.6.0)..
I started by upgrading tabris-cli
with npm i -g tabris-cli
. It didn't help. Then I uninstalled and reinstalled both the mobile app and tabris-cli
. Both are now in version 3.6.0
but the same error remains.
Any idea ?
...ANSWER
Answered 2020-Sep-13 at 06:48The Version mismatch error stems from the fact that the native application code and the code of the JavaScript framework of your project are different. If you look at the package.json
file of the directory where you are running tabris serve
it will probably have the tabris dependency set to 3.5.0
You can update it by running this command:
QUESTION
I am trying very hard and losing my patience with trying to send a simple array across to tabris.js
using this ws.send(JSON.stringify(["friendArray",{data: results}]))
i have to stringify it or it just crashes my tabris app for no reason
but when i go to JSON.parse()
it. it keeps just giveing me an error Unexpected token 1 in JSON at psotion 0
I'm honestly at a loss I don't know what I could be doing wrong it could be something super simple but I'm frying my brain just trying to come up with a way to transport this simple information could someone please point me in the right direction
...ANSWER
Answered 2019-Nov-19 at 05:48try something like, I assume results is some kind of variable, you just need to put data key in double quotes.
QUESTION
I am trying to build a Tabris app for android that acts as a client for my socket.io server I was doing some reading and seen that the WebSocket API is supported in tabris.js so I try to connect to my socket.io server like this
var socket = new WebSocket('ws://159.89.92.113:4343');
but I get this error
The WebSocket protocol has too be a string or an array of strings
so then i tried to fill in that parameter with the only thing i could think of
var socket = new WebSocket('ws://159.89.92.113:4343', 'ws');
and then i get this error
Can not 'send' WebSocket message when WebSocket state is CONNECTING
i honestly dont know how to make this work i have tried alot of different things.
...ANSWER
Answered 2019-Nov-06 at 01:25Regarding the protocols
parameter, here's what the WHATWG Standard has to say:
protocols is either a string or an array of strings. If it is a string, it is equivalent to an array consisting of just that string; if it is omitted, it is equivalent to the empty array. Each string in the array is a subprotocol name. The connection will only be established if the server reports that it has selected one of these subprotocols. The subprotocol names have to match the requirements for elements that comprise the value of
Sec-WebSocket-Protocol
fields as defined by The WebSocket protocol.
So refer to your server's implentation as to what to send for that parameter, if anything at all.
The "Can not 'send' WebSocket message when WebSocket state is CONNECTING" message shouldn't occur when connecting but very well could occur if you tried to send too soon; the message specifically occurs when send()
is called during the connecting phase. You can delay the send message until the connection is establashed as so:
QUESTION
Tabris.js claims to be simple and offers a "getting started" demo app for noobs to try for themselves with a step by step guide.
Downloading the cli tool works seamlessly, and creating the initial demo app asks clear and sensible questions: what to call the app, etc. (I chose the defaults), what source language (I chose Typescript), what IDE (I chose VSCode).
The guide says building the app is as easy as tabris build {android|ios|windows}
but here's the kicker...
Now I'm asked for a "Build key".
WTF? What's that then? Do I make one up? What form should it take? Where do I get one from? Do I need to pay?
Go to the docs: no mention of "build key".
Search the docs: there's mention of a SSH key if I'm accessing a repo outside of Git, or a Cordova key if I'm sideloading on Windows 10. Neither of these apply.
Tabris.js looked interesting enough that I downloaded the cli and the android app, but it's just one more disappointment if the makers can't document how to get "Hello world!" off the ground.
Can anyone tell me about the build key I need when I want to build a tabris.js app?
For anyone interested, here's their doc site... https://tabrisjs.com/documentation/latest/
...ANSWER
Answered 2017-Aug-01 at 15:45When you run tabris build
, the following output is seen:
QUESTION
Can I pass the name
of the widget to the function
to create Tabs?
Something like
let widgetName = new Tab({
...
Why?
- I need to put many different
widgets inside of the each
tab
created, i.e.:.appendTo(tabCart)
Note: When I create a function createTextViews()
I assign a unique
id: txvName +(index)
(an array
is passed to createTextView()
, then a forEach
loop)
and can address each TextView
by id, which works great.
...Sample Code: (works on /playground)
ANSWER
Answered 2018-Aug-05 at 11:50Thanks Cookie Guru. Your suggestion of
return tab
is the solution I was hoping for.Here's a little sample of how I will be using this in my app:
QUESTION
Here is an example (works on playground) that creates widgets with a forEach loop.
I use index
to create a unique ID for the widgets:
ANSWER
Answered 2018-Jul-17 at 18:28This depends on how you structure your code.
Your example shows you looping over an array to create a list layout. If the layout ends up being taller than what can fit on the screen, there are performance gains to be had by switching to a CollectionView
. This is because the CollectionView
will render only what is necessary to be shown on the screen whereas drawing every element will keep the entire layout in memory. So if your persons
array is going to get large, I'd switch it to a CollectionView
and it sounds like you already have the code to style that.
All widgets can be referenced from a JavaScript variable, like so:
QUESTION
I'm able to easily add Widgets to CollectionView, but I can't seem to add more than one Widget type. I'm trying to add 2 TextView's. Here's what I got so far, it only outputs the firstName twice. (this runs in Playground)
Also, is it possible to add events to each TextView? like:
.on('tap', () => {
I do see how the .on('select',
works, on the Collection View, but I want to add event to each individual TextView's
Thanks.
...ANSWER
Answered 2018-Jun-26 at 17:16The apply method takes a Widget selector, which works similarly to CSS selectors and are documented at the aforementioned link. You are referencing a JavaScript variable, which is not supported and not in scope in the updateCell
callback function.
I would update your createCell
callback so that each of the elements has a distinct class on them and reference that in your updateCell
callback:
QUESTION
I've searched around questions but I didn't find anything.
I'm new to Tabris-JS framework, is very powerful and simple but I have some issue with the Splash Screen.
As mentioned in this commit, in Tabris-JS 2.x there are two theme options: one light theme
, and the other dark theme
.
But they both have margin
around the image.
The result is this (behind the image there is the 'dark gray' background):
I try to search for the correct Activity
that is responsable for the Launcher, but I'm not good in Java.
PS: Splash Screen images are all correctly generated, with online tools for all screen sizes.
...ANSWER
Answered 2017-Nov-14 at 17:11Per the Tabris.js issue tracker, the solution is to theme the android app with a color background on splash, and assume that the splash screen image will be centered.
Since iOS has a more finite number of resolutions this shouldn't be an issue and the regular Cordova splash screen configuration applies.
QUESTION
When I try to access my app via the URL in the Tabris.js 2 Developer app, I briefly see the message below, and the app returns me back to the URL screen:
"Could not load boot.min.js or boot.js file from tabris module 'node_modules/tabris'"
I tried running the basic out-of-the-box tabris test app (using tabris init
in an empty directory) and the same issue happened, so I am confident that this is not something to do with my app.
Some other details:
- Using v2.0.0 of tabris.js, although this is happening with 2.0.0-rc2 as well
- The last time this worked with the same code base for me was prior to my phone (a Nexus 5X) being upgraded to Android Oreo. I wonder if the Tabris.js 2 Developer app has any issues running in Oreo?
- I know that the http-server is running correctly on my development machine, as I can navigate to http://[development-ip]:8080/package.json and get that file on my mobile device
ANSWER
Answered 2017-Sep-22 at 08:02I can confirm the issue with a project created with the CLI (version 2.0). The latest tabris dev app (2.1) does not work with tabris 2.0. You'd have to upgrade your projct to tabris 2.1:
QUESTION
Upnp looks harder to work with in TabrisJs.
It supports node packages to a large extent, but I am finding a tough time working with Upnp.
In package.json I got node-upnp-client
...ANSWER
Answered 2017-Jul-24 at 09:09Tabris.js uses a Node.js compatible module system to allow using modules hosted on npm in your app. However, it does not implement most of the Node.js APIs.
Some basic APIs like Timer and Console are available. In addition to that, a small subset of the Node APIs is supported by the tabris-js-node module. Unfortunately, the network APIs of Node.js (dgram is one of them) are not implemented in Tabris.js.
This rules out npm plugins that build on these APIs. You'd have to implement this functionality on top of Tabris APIs such as fetch
or websockets
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install tabris
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page