Created
July 15, 2018 18:57
-
-
Save aatanasovdev/7fce3367f4d5ebb0a73db2c9fc35a613 to your computer and use it in GitHub Desktop.
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
registerBlockType('gutenberg-widget-block/rss-feed', { | |
title: 'RSS Feed', | |
icon: 'rss', | |
category: 'widgets', | |
attributes: { | |
numberOfPosts: { | |
type: 'integer', | |
default: 10 | |
}, | |
url: { | |
type: 'string' | |
}, | |
showDescription: { | |
type: 'boolean', | |
default: false | |
}, | |
showDate: { | |
type: 'boolean', | |
default: false | |
} | |
}, | |
edit: withState( { validated: false, error: false } ) ( edit ), | |
save: save, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment