forked from elibeachy/Bubble-Plugin-1T---Get-Raw-Field-Names
-
Notifications
You must be signed in to change notification settings - Fork 0
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
0 parents
commit 0dc0900
Showing
7 changed files
with
93 additions
and
0 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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2022 elibeachy | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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,3 @@ | ||
This is a repository based on the [Bubble](https://bubble.io) plugin '1T - Get Raw Field Names'. This lets you use Github's functionality in terms of version control, forks and pull requests. Note that the the plugin code is stored on Bubble's servers, and you need to synchronize your repository in the Bubble Plugin Editor. | ||
|
||
This plugin can be used in [Bubble applications](https://bubble.io). |
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,29 @@ | ||
function(properties, context) { | ||
|
||
|
||
//Load any data | ||
|
||
if (properties.thing !== null) { | ||
let fieldNames = properties.thing.get(0,1)[0].listProperties(); | ||
|
||
let length = fieldNames.length; | ||
|
||
|
||
let i, fields = "Your field names are: \n"; | ||
|
||
|
||
for (i = 0; i < length; i++) { | ||
|
||
fields += fieldNames[i] + '\n'; | ||
|
||
} | ||
console.log(fields) | ||
window.alert(fields) | ||
|
||
} else alert('Whoa there, Hoss! The data search you entered was empty. Feed me some data!'); | ||
|
||
//Do the operation | ||
|
||
|
||
|
||
} |
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,16 @@ | ||
{ | ||
"category": "plugins", | ||
"display": "Get Field Names test", | ||
"fields": { | ||
"AAD": { | ||
"caption": "The Thing", | ||
"doc": "Just do a search for the data type (Thing) you want to see the fields for and when this action is run it will show a standard browser alert with the field data", | ||
"editor": "DynamicValue", | ||
"is_list": true, | ||
"name": "thing", | ||
"rank": 0, | ||
"value": "_any_thing" | ||
} | ||
}, | ||
"type": "client_side" | ||
} |
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 @@ | ||
function(properties, context) { | ||
|
||
|
||
|
||
|
||
|
||
|
||
} |
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,11 @@ | ||
{ | ||
"categories": { | ||
"0": "data (things)", | ||
"1": "productivity", | ||
"2": "technical" | ||
}, | ||
"description": "An easy way to grab the raw field names Bubble uses (ie name__text, age__number)", | ||
"image": "//s3.amazonaws.com/appforest_uf/f1592236652121x241542268463671650/noun_Info_2691046%20%281%29.png", | ||
"license": "open_source", | ||
"name": "1T - Get Raw Field Names" | ||
} |
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,5 @@ | ||
{ | ||
"dependencies": { | ||
"use_jquery": true | ||
} | ||
} |