All Projects → karlerikjonatan → framer-module-ajax

karlerikjonatan / framer-module-ajax

Licence: MIT license
An Ajax module for Framer.

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Labels

Projects that are alternatives of or similar to framer-module-ajax

lighthouse
Lighthouse is a continuous design system for integrating design with development workflows.
Stars: ✭ 25 (+19.05%)
Mutual labels:  framer
framer-view-stack
A Framer module for creating views that stack on top of each other.
Stars: ✭ 24 (+14.29%)
Mutual labels:  framer
Framer-app-base
A Framer module to create the base of an app with a flow component and a tab bar menu
Stars: ✭ 13 (-38.1%)
Mutual labels:  framer
iconoir
A Simple and Definitive Open-Source Icons Library
Stars: ✭ 2,429 (+11466.67%)
Mutual labels:  framer
FramerMapboxJS
Simplest way to integrate Mapbox maps on your Framer prototypes.
Stars: ✭ 45 (+114.29%)
Mutual labels:  framer
syntax-atom-ui
An Atom UI theme inspired by Framer’s popular code editor.
Stars: ✭ 26 (+23.81%)
Mutual labels:  framer
syntax-atom
An Atom dark theme inspired by Framer’s popular code editor.
Stars: ✭ 22 (+4.76%)
Mutual labels:  framer
Framer-CollectionComponent
Framer Module
Stars: ✭ 22 (+4.76%)
Mutual labels:  framer
iOS-11-Framer
iOS 11 Design System GUI for Framer
Stars: ✭ 42 (+100%)
Mutual labels:  framer
framer-seed
Kickstart your Framer Library prototype development.
Stars: ✭ 31 (+47.62%)
Mutual labels:  framer
Framer-Module-ShakeEvent
Shake event for your prototype.
Stars: ✭ 62 (+195.24%)
Mutual labels:  framer

framer.module.ajax

framer.module.ajax is an Ajax module for Framer.

Installation

Add ajax.coffee to the /modules folder of your project.

Usage

To include the module within your project, add the following:

ajax = require "ajax"

framer.module.ajax consists of the method get and requires the parameters url, callback.

get

ajax.get(url, (response) -> callback(response))

The url and callback parameters defines the URL to request and the function to run (together with response object) on success.

framer.module.ajax parses all responses as JSON.

Example

# Module
ajax = require "ajax"

# GET
ajax.get("https://randomuser.me/api/", (response) -> createAvatar(response))

# Avatar
createAvatar = (data) ->
	avatar = new Layer(
		height: 200
		width: 200
		image: data.results[0].user.picture.large
	)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].